Unable to use ResMS.img for Alphasim

Hi everyone,

I am unable to use ResMS.img to run Monte Carlo simulation. Below is the error message that I got:

Undefined function or variable "testFlag".
 
Error in rest_Smoothest_gui>Comput_pushbutton_Callback (line 207)
if strcmp(testFlag,'Z')
 
Error in gui_mainfcn (line 95)
        feval(varargin{:});
 
Error in rest_Smoothest_gui (line 42)
    gui_mainfcn(gui_State, varargin{:});
 
Error in
@(hObject,eventdata)rest_Smoothest_gui('Comput_pushbutton_Callback',hObject,eventdata,guidata(hObject))
 
 
Error using waitfor
Error while evaluating uicontrol Callback

Using the statistical maps work though. Any ideas how to rectify this?

Thanks!

Best,
Darren