faq > Error while evaluating UIControl Callback.
Sep 30, 2021  03:09 PM | Chihhao Lien
Error while evaluating UIControl Callback.
Dear all,

I meet an error while the ISC analysis is finished and launching the GUI

When the analysis is finished, the error is:

ans =

'30-Sep-2021 16:42:28'
ans =
'30-Sep-2021 16:42:28'
Calculating critical thresholds:
Index exceeds the number of array elements (0).
Error in combineNullVals (line 98)
nullVals = nullVals(1:(1+floor(N*q)));
Error in calculateThresholds (line 66)
combineNullVals(Params,nrSession,winOn); % combine (right-tail) null-distribution data
Error in runAnalysis (line 484)
calculateThresholds(Params,nrSession,0); % across session
Error in ISCanalysis>pushbuttonRun_Callback (line 602)
runAnalysis(handles.Params);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in ISCanalysis (line 43)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ISCanalysis('pushbuttonRun_Callback',hObject,eventdata,guidata(hObject))
Error using uiwait (line 81)


In addition, when Calculating permutation distributions for each ISC map, the feedback looks weird too.


Calculating permutation distributions for each ISC map:
Started at: 30-Sep-2021, 15:45:9.681
GBW-D-W2793
: X:\fMRIprep_6Asym_20210925\ISC\results\PositiveAll\stats/vals1Session1
Realization number: 100000/10000000
Resampled ISC value: NaN
Realization number: 200000/10000000
Resampled ISC value: NaN
Realization number: 300000/10000000
Resampled ISC value: NaN
Realization number: 400000/10000000
Resampled ISC value: NaN
...


When I try to launch the GUI, there's a warning "Unexpected error while opening visu-GUI with the current parameters, use File->Open to find a correct parameter-file.

In the beginning, I thought there might have some subjects make the problem, so I try to do the same analysis with fewer subjects several times. Unfortunately, if I just include 5-6 subjects in the analysis, no one will make the error. Does anyone know how to deal with this problem?

Thanks.
Attachment: Picture1.png