diff --git a/topoplot/plotOneSubjectOneDay.m b/topoplot/plotOneSubjectOneDay.m index 46dc785..d5f8ab3 100644 --- a/topoplot/plotOneSubjectOneDay.m +++ b/topoplot/plotOneSubjectOneDay.m @@ -21,5 +21,5 @@ [EEG,~]=readEEGSig(pathToFile,subject,number,maxFile); - topoplot_Wrapper(EEG,eloc_file,stepSize); + topoplot_Wrapper(EEG,eloc_file,stepSize,250); end \ No newline at end of file diff --git a/topoplot/topoplot_Wrapper.m b/topoplot/topoplot_Wrapper.m index 51d1eeb..a4951ae 100644 --- a/topoplot/topoplot_Wrapper.m +++ b/topoplot/topoplot_Wrapper.m @@ -1,6 +1,15 @@ function topoplot_Wrapper(EEG,eloc_file,stepSize,samplingFrequency) % Wrapper for topoplot_martin() % Allows for plottig all EEG-Data of one timeline and sliding through them +% +% EEG - consecutive EEG data (no of channels has to match the one in eloc_file) +% +% eloc_file - path to the eloc-file, type topoplot_martin('demo') for an example +% +% stepSize - number of Datapoints the slider skips in one step (1 for none) +% +% samplingFrequency - sampling frequency for the EEG data + slider=uicontrol('Style','slider','Min',1,'Max',fix(size(EEG,1)/stepSize),... 'Value',1,'SliderStep',[stepSize/size(EEG,1),stepSize*10/size(EEG,1)],... 'Callback',{@topoplotSlide,EEG,eloc_file,stepSize,samplingFrequency},...