ismatlab function within pop_loadbv not working
16 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
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.
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!