Open alapo opened 3 years ago
Just wanted to follow up that the example contained within the original paper currently does not work.
EEGdir = 'C:\Users\Gertrude\Desktop\Microstates\raw\Poulsen Example\Microstate\EEG\';
EEGFiles = dir([EEGdir '*.set']);
for i = 1:length(EEGFiles)
EEG = pop_loadset('filename',EEGFiles(i).name,'filepath',EEGdir);
[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, 0 );
eeglab redraw % updates EEGLAB GUI
end
%% 3.3.2 Select data for microstate analysis
[EEG, ALLEEG] = pop_micro_selectdata( EEG, ALLEEG, 'datatype', 'spontaneous',...
'avgref', 1, ...
'normalise', 0, ...
'MinPeakDist', 10, ...
'Npeaks', 1000, ...
'GFPthresh', 1, ...
'dataset_idx', 1:4 );
The error is shown below
Error using findpeaks
Too many input arguments.
Error in pop_micro_selectdata (line 172)
[~, peakidx{i,1}] = findpeaks(GFP,'MinPeakDistance',MinTFdistance);
MEET THE SAME PROBLEMS
@vincent5290 I'm not sure if I understand...are you saying you are having the same problem as I reported?
true, how do u figure out
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: alapo @.> Sent: Tuesday, June 15, 2021 12:24:12 AM To: atpoulsen/Microstate-EEGlab-toolbox @.> Cc: Zeng Xinglin @.>; Mention @.> Subject: Re: [atpoulsen/Microstate-EEGlab-toolbox] Trouble selecting data (#4)
@vincent5290https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_vincent5290&d=DwMCaQ&c=KXXihdR8fRNGFkKiMQzstu-8MbOxd1NuZkcSBymGmgo&r=q2DYoCrvcIEc1BFL24je5g&m=CI2ccJC4WTfSCA-XpKtyJNiLC1pEd0tGS7gvCFvxlpU&s=PSMiCh_vZUAkKiVK5R6mQuF3M56cUbw53wbZQKkXvUE&e= I'm not sure if I understand...are you saying you are having the same problem as I reported?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_atpoulsen_Microstate-2DEEGlab-2Dtoolbox_issues_4-23issuecomment-2D860817463&d=DwMCaQ&c=KXXihdR8fRNGFkKiMQzstu-8MbOxd1NuZkcSBymGmgo&r=q2DYoCrvcIEc1BFL24je5g&m=CI2ccJC4WTfSCA-XpKtyJNiLC1pEd0tGS7gvCFvxlpU&s=e1gGlwD-18jw8Zo67-opniutbogSkG0mDXrahn04NIc&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ASYUESINQD2YRW7RGOLKEW3TSYUKZANCNFSM4RQ2WUVA&d=DwMCaQ&c=KXXihdR8fRNGFkKiMQzstu-8MbOxd1NuZkcSBymGmgo&r=q2DYoCrvcIEc1BFL24je5g&m=CI2ccJC4WTfSCA-XpKtyJNiLC1pEd0tGS7gvCFvxlpU&s=z5qDEPvVKysT_1cQgtIT3XvNm-0T37aHvCJIHqd1PTY&e=.
I had the same problem. Try running >>which findpeaks
and see if the path is from MATLAB toolbox and not another custom path. Using findpeaks from MATLAB\R2020b\toolbox\signal\signal\findpeaks.m
worked for me.
I am attempting to replicate the analyses used in the paper. I have created a reproducible example below where 3 EEG files of 180 seconds are created. The data has 3 epochs of 60 seconds.
I continue to get the following error![img](https://i.imgur.com/DaPoBNu.png)
I have also attempted to run each epoch individually (so there are no events) and I get the same error.
Below is my code required files (events and channels).zip