MATLAB Answers

I have some questions on edf to mat.

9 views (last 30 days)
Sheldon Zhang
Sheldon Zhang on 11 Mar 2018
Commented: jiaqi zheng on 7 Aug 2018
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
  1 Comment
jiaqi zheng
jiaqi zheng on 7 Aug 2018
I'm a student from China. I had the same question with you. Have you solved your problem? If yes, could you give me some advice?

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!