Importing EEG edf to matlab
조회 수: 23 (최근 30일)
이전 댓글 표시
Hi guys having this error message when importing EEG/EDF format into matlab. What can I do. Complete newbie.
댓글 수: 2
Image Analyst
2020년 12월 31일
That is, attach the data you forgot to attach, after reading the link above.
And did you download and install the mex file from that web site like it said to?
What is pop_biosig()? Is it a custom function you or someone else wrote? Attach your code if you want someone to try to run it.
Daniel Gallagher
2021년 5월 6일
Hi Mubeen,
I'm struggling with the same problem now. Did you ever find a solution?
I checked the link given by Athul, I've tried installing mexSLOAD.mex, and I've pored over all the documentation I can, but I haven't been able to crack it. Moreover, this error arises from only one EEG dataset (that was taken in exactly the same way as all my other datasets), which strikes me as quite odd. Anyway, I'd really appreciate it if you could tell me what ended up working for you!
답변 (2개)
Athul Prakash
2021년 1월 5일
Hi Mubeen,
I presume you're using the pro_biosig.m file found here: https://github.com/donnchadh/biosig/blob/master/biosig/eeglab/pop_biosig.m
The issue seems specific to the code the owner of the repo has written ("index exceeds the number of array elements"). However, the error message itself warns you about an installation and the issue could likely be from a missing file, so you should install mesSLOAD.mex as suggested.
You may find more help in the issues section of the repo you're using.
Hope it helps!
댓글 수: 0
Daniel Gallagher
2021년 6월 2일
I had the same problem. In my case, the error only came up with one of my EEG datasets (which was recorded the same way as all the others). This eventually fixed it for me:
From the EEGLAB GUI, File > Manage EEGLAB Extensions > Biosig 7.3.5, then click "Install/Update".
I had previously tried updating source files (like edfannot2evt.m) manually, but I think doing so caused some problem with path (even though I tried manually updating that as well...). In any case, this manual updating didn't do the trick for me. But going through the GUI did, so maybe this will work for some others who face the same problem.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!