MATLAB: While calculating alff value in rest tool version 1.8, got an error…Dono how to rectify this??

alff calculationfmrimatlab guirest v1.8 error

alff_gui
Error using matlab.ui.control.UIControl/set
While setting the 'CData' property of UIControl:
Value must be a three-dimensional matrix of RGB values that defines a truecolor image. Each value must be
between 0.0 and 1.0 or NaN.
Error in alff_gui>InitControlProperties (line 829) set(handles.btnSelectDataDir, …
Error in alff_gui_alff_gui_OpeningFcn (line 42) InitControlProperties(hObject, handles);
Error in gui_mainfcn (line 220) feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in alff_gui (line 34) gui_mainfcn(gui_State, varargin{:});
>>

Best Answer

In alff_gui, everywhere that has
'CData', zeros(1,0)
change to
'CData', zeros(0,0,0)