0

这是我的代码,它给我一条错误消息,行 hdr = edfheader ("EDF+")

hdr = [];
hdr = edfheader("EDF+");
hdr.NumDataRecords = 1;
hdr.DataRecordDuration = seconds(length(data(:,1))/fs);
hdr.NumSignals = 8;
hdr.SignalLabels = ["Fz" "Cz" "P3" "Pz" "P4" "PO7" "PO8" "Oz"];
%hdr.SignalLabels = ["F1" "F2" "F3" "F4" "F5" "F6" "F7" "B1"];
hdr.PhysicalDimensions = repelem("mV",8);
hdr.PhysicalMin = min(data);
hdr.PhysicalMax = max(data);
hdr.DigitalMin = [-32768 -32768 -32768 -32768 -32768 -32768 -32768 -32768];
hdr.DigitalMax = [32767 32767 32767 32767 32767 32767 32767 32767];

% ...
edfw = edfwrite("armEMG.edf",hdr,data,annotationslist,'InputSampleType',"physical");

有谁知道还有什么可以尝试的?

4

0 回答 0