ismatlab function within pop_loadbv not working
8 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Anay
on 4 Feb 2025
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.
0 Comments
See Also
Categories
Find more on EEG/MEG/ECoG in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!