MATLAB: Error facing setting property of static text

error facing setting property of static text

??? Undefined variable "handles" or class "handles.edit4".
Error in ==> GUI>feature_ext at 693 set(handles.edit4,'visible','off')
Error in ==> GUI>pushbutton10_Callback at 654 res = feature_ext(str_1,str_2,im9);
Error in ==> gui_mainfcn at 96 feval(varargin{:});
Error in ==> GUI at 42 gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback

Best Answer

You need to add handles to the list of variables in your call
res = feature_ext(str_1,str_2,im9)
and you need to modify the "function" call of feature_ext to expect "handles" in the corresponding location.