how can i read large data in loop
Mostrar comentarios más antiguos
hello everybody
I have data with names 's001r01.edf', 's001r02.edf', 's001r03.edf','s002r01',... and it ends at 's109r03'. I know how I can read data but I want read the data in a loop. actually I want read the data only with first section of its name, it's mean 001,002,...,109. I read the data with this function:
[data1, header] = ReadEDF('S109R04.edf');
1 comentario
Kevin Chng
el 7 de Oct. de 2018
sorry if my answer is wrong for you
EDF = dir('*.edf');
data = cell(length(edf),1);
header = cell(length(edf),1);
for q = 1:length(edf)
[data(q), header(q)] = ReadEDF('S109R04.edf');
end
Line 2 and line 3 are not necessary if your readEDF return only 1 single variable.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Timing and presenting 2D and 3D stimuli en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!