edfread and edfinfo throw an error

9 次查看(过去 30 天)
Zaid Shuqfa
Zaid Shuqfa 2021-1-11
评论: elif 2022-6-21
When using edfinfo and edfread with some files (the other files are OK) an error pops up as shown below:
>>edfinfo('S002R06.edf')
Index exceeds the number of array elements (0).
Error in signal.internal.edf.readAnnotations (line 34)
d_idx = find(temp(1:o_idx(1)) == char(21));
Error in edfinfo/readHeader (line 239)
tempDuration] = signal.internal.edf.readAnnotations(tAnnotations);
Error in edfinfo (line 173)
obj = readHeader(obj, filename, fid, fileInfo);
I have the following version info:
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.9.0.1538559 (R2020b) Update 3
MATLAB License Number: DEMO
Operating System: Microsoft Windows 10 Education Version 10.0 (Build 18363)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.9 (R2020b) Trial 8368984
Simulink Version 10.2 (R2020b) Trial 8368984
Control System Toolbox Version 10.9 (R2020b) Trial 8368984
Curve Fitting Toolbox Version 3.5.12 (R2020b) Trial 8368984
DSP System Toolbox Version 9.11 (R2020b) Trial 8368984
Image Processing Toolbox Version 11.2 (R2020b) Trial 8368984
Instrument Control Toolbox Version 4.3 (R2020b) Trial 8368984
Optimization Toolbox Version 9.0 (R2020b) Trial 8368984
Parallel Computing Toolbox Version 7.3 (R2020b) Trial 8368984
Signal Processing Toolbox Version 8.5 (R2020b) Trial 8368984
Statistics and Machine Learning Toolbox Version 12.0 (R2020b) Trial 8368984
Symbolic Math Toolbox Version 8.6 (R2020b) Trial 8368984
  3 个评论
Zaid Shuqfa
Zaid Shuqfa 2021-4-30
Have you found a solution yet? How do you read that file?
Demet
Demet 2021-12-8
Hello,
I also had the same problem and I couldn't solve it. But I could open.edf file with brainstorm. You can add it matlab with add-ons . When you run brainstorm() It will ask account you can create new account then you can open the GUI. In file section create new protocol and create subjects.You can find more information here .

请先登录,再进行评论。

回答(1 个)

Demet
Demet 2022-2-25
Hello,
I also had the same problem and I could open.edf file with brainstorm. You can add it matlab with add-ons . When you run brainstorm() It will ask account you can create new account then you can open the GUI. In file section create new protocol and create subjects.You can find more information here .

类别

Help CenterFile Exchange 中查找有关 Discrete Multiresolution Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by