ismatlab function within pop_loadbv not working

조회 수: 9 (최근 30일)
Georgina
Georgina 2025년 1월 31일
답변: Anay 2025년 2월 4일
I am trying to load some EEG data into matlab using this code:
ampmatrix = nan(totalN, length(triggerlabels));
SNRdb_matrix = nan(totalN, length(triggerlabels));
for PNo = 1:totalN % loop to iterate through each EEG data file
[EEG, com] = pop_loadbv('C:\Users\Georg\OneDrive - University of XXX\EEG_data', files(PNo).name);
(with my actual onedrive not XXX)
and I am getting this error message:
Unrecognized function or variable 'ismatlab'.
Error in pop_loadbv (line 146)
if ismatlab
^^^^^^^^
I am really stuck! I have tried downloading and setting a path to the bva-io package but it is not working. My EEG folder contains three files for each participants (.eeg, .vhdr and .vmrk) and also has a path set to it. Can anyone help me please?

답변 (1개)

Anay
Anay 2025년 2월 4일
Hi Georgina,
From what I understand, you're using the "pop_loadbv" function from the "bva-io" package, which is causing the error: "Unrecognized function or variable 'ismatlab'".
This error occurs because MATLAB cannot locate anything named "ismatlab" (either a variable or a function) on its path.
A probable reason for this issue is that you haven't installed the "EEGLAB" toolbox, which is necessary for using the "bva-io" package.
You can follow the steps provided in the linked answer below to resolve this error:
I hope this helps.

카테고리

Help CenterFile Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by