【问题标题】:Cutting edf file and save it in edf format using matlab使用matlab切割edf文件并以edf格式保存
【发布时间】:2014-04-25 12:03:44
【问题描述】:

我有一个 edf 文件,其中包含 3000++ 个样本的数据。

我只需要使用前半部分数据(1500++ 个样本)。

如何将edf文件剪切并再次保存到edf文件中?

【问题讨论】:

  • 我可以谦虚地建议您看看How to ask 部分吗?
  • 我想我已经让我的问题简短、清晰且易于理解。

标签: matlab european-data-format


【解决方案1】:

看看这个文件交换提交:Reading and saving of data in the EDF+

您可以读取文件,剪切数据并再次保存:

% Read the file    
[data, header] = readEDF(filename);

% Keep only the first half (data is in a cell array)
data = cellfun(@(x) (1:round(numel(x)/2)), data, 'UniformOutput', false);

% Update this header field
header.records = round(header.records/2);

% Save the file
SaveEDF(filename, data, header);

【讨论】:

    猜你喜欢
    • 2022-10-06
    • 1970-01-01
    • 1970-01-01
    • 2018-07-24
    • 1970-01-01
    • 1970-01-01
    • 2020-09-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多