edfread and edfinfo throw an error

4 vues (au cours des 30 derniers jours)
Zaid Shuqfa
Zaid Shuqfa le 11 Jan 2021
Commenté : elif le 21 Juin 2022
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 commentaires
Zaid Shuqfa
Zaid Shuqfa le 30 Avr 2021
Have you found a solution yet? How do you read that file?
Demet
Demet le 8 Déc 2021
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 .

Connectez-vous pour commenter.

Réponses (1)

Demet
Demet le 25 Fév 2022
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 .
  1 commentaire
elif
elif le 21 Juin 2022
thanks for information

Connectez-vous pour commenter.

Catégories

En savoir plus sur EEG/MEG/ECoG dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by