REST Image Calculate flip 出错

Error using flipud (line 19)
X must be a 2-D matrix.

Error in rest_ImgCal_gui>img_cal (line 481)
    eval(['Y = ' f ';']);

Error in rest_ImgCal_gui>btnCompute_Callback (line 228)
    img_cal(OutDir,OutPut,Function,Gmag,data);

Error in gui_mainfcn (line 96)
        feval(varargin{:});

Error in rest_ImgCal_gui (line 30)
    gui_mainfcn(gui_State, varargin{:});
 
Error while evaluating uicontrol Callback