I have some questions on edf to mat.

1 visualización (últimos 30 días)
Sheldon Zhang
Sheldon Zhang el 11 de Mzo. de 2018
Comentada: gao yang el 30 de Ag. de 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 comentarios
星 王
星 王 el 10 de Oct. de 2021
I had the same question with you, too. Could you give me some advice on how you solve this problem?
gao yang
gao yang el 30 de Ag. de 2022
老铁 解决了没啊

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!