I have some questions on edf to mat.
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm Sheldon Zhang. I get the Edfread.m from MathWorks. I want to change edf to mat,but I'm new on Matlab.
When I type "hdr = edfread('SZ2-3.edf')" It shows like this: Step 1 of 2: Reading requested records. (This may take a few minutes.)...
hdr =
ver: 0
patientID: 'VEEG0118N_1 M 07-SEP-2006 ##_# '
recordID: 'Startdate 12-JUN-2017 X X Compact_2x64ch '
startdate: '12.06.17'
starttime: '04.37.36'
bytes: 29440
records: 2138
duration: 1
ns: 114
label: {1x114 cell}
transducer: {1x114 cell}
units: {1x114 cell}
physicalMin: [1x114 double]
physicalMax: [1x114 double]
digitalMin: [1x114 double]
digitalMax: [1x114 double]
prefilter: {1x114 cell}
samples: [1x114 double]
frequency: [1x114 double]
Some of variables like 'physicalMin','digitalMin','digitalMax','samples' and 'frequency' are 'NaN'. I don't know how it happend.
And if I type [hdr,record] = edfread('SZ2-3.edf'); It shows like this:
Step 1 of 2: Reading requested records. (This may take a few minutes.)... Error using fread Invalid size.
Error in edfread (line 225) tmpdata(recnum).data{ii} = fread(fid,hdr.samples(ii),'int16') * scalefac(ii) + dc(ii);
It seems the code can't run.
I would appreciate it if you can give me some advice! Thank you very much!!!
Sheldon Zhang
댓글 수: 3
星 王
2021년 10월 10일
I had the same question with you, too. Could you give me some advice on how you solve this problem?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!