I have some questions on edf to mat.

1 view (last 30 days)
Sheldon Zhang
Sheldon Zhang on 11 Mar 2018
Commented: gao yang on 30 Aug 2022
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 Comments
星 王
星 王 on 10 Oct 2021
I had the same question with you, too. Could you give me some advice on how you solve this problem?

Sign in to comment.

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!