Description
I find a bug in the limo_random_select.m script
#### Steps to Reproduce
- Specify a mix design with a within and a between factor
- Estimate the parameter (channels) for the first level
- call the limo_random effect (in the GUI : Study ->LInear MOdeling of EEG data->2nd level Analysis
- Specify an ANOVA/ANCOVA with repeated mesure, group = 2, condition = 2, after le selection of the Beta_files_Gp-2 (in first as required) you have a error message in the command window (see below)
#### Expected behavior:
Open a windows to sepcify the level of the within factor to consider
#### Actual behavior:
Error message in the command window
Unrecognized function or variable 'parameters'.
Error in limo_random_select (line 1301)
parameters(i,:) = parameters(1,:); % copy design for other groups
^^^^^^^^^^^^^^^
Error in limo_random_effect>ANOVA_Callback (line 338)
limo_random_select(answer,handles.chan_file,'nboot',handles.b,'tfce',handles.tfce,'type',handles.type);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in gui_mainfcn (line 95)
feval(varargin{:});
^^^^^^^^^^^^^^^^^^
Error in limo_random_effect (line 28)
gui_mainfcn(gui_State, varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)limo_random_effect('ANOVA_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
#### Solution
At the line 1273 of the scipt limo_random_select.m, replace : for i=gp_nb:-1:1 by for i=1:1:gp_nb (change the order of the incrementation) and it solved the problem.
#### Versions
|
|
| OS version |
[Windows 11] |
| Matlab version |
[2024b] |
| EEGLAB version |
[2023.1] |
| LIMO version |
[4.1.2] |
Description
I find a bug in the limo_random_select.m script
#### Steps to Reproduce
#### Expected behavior: Open a windows to sepcify the level of the within factor to consider
#### Actual behavior: Error message in the command window
Unrecognized function or variable 'parameters'.
Error in limo_random_select (line 1301)
parameters(i,:) = parameters(1,:); % copy design for other groups
^^^^^^^^^^^^^^^
Error in limo_random_effect>ANOVA_Callback (line 338)
limo_random_select(answer,handles.chan_file,'nboot',handles.b,'tfce',handles.tfce,'type',handles.type);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in gui_mainfcn (line 95)
feval(varargin{:});
^^^^^^^^^^^^^^^^^^
Error in limo_random_effect (line 28)
gui_mainfcn(gui_State, varargin{:});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)limo_random_effect('ANOVA_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
#### Solution At the line 1273 of the scipt limo_random_select.m, replace : for i=gp_nb:-1:1 by for i=1:1:gp_nb (change the order of the incrementation) and it solved the problem.
#### Versions