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

 채택된 답변

Walter Roberson
Walter Roberson 2011년 8월 11일

1 개 추천

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.

추가 답변 (9개)

irum
irum 2011년 8월 11일

0 개 추천

plz tell me how can i remove this error????
Friedrich
Friedrich 2011년 8월 11일

0 개 추천

Hi,
do a
dbstop if error
in the MATLAB command line. Than run your program, push the button which raises the error and you will get into the debug mode. Look at the handles variable. Sounds like hte field handles.edit4 doesn't exist.
irum
irum 2011년 8월 11일

0 개 추천

if num_female > num_male
set(handles.text27,'visible','on')
set(handles.text28,'visible','off')
else
set(handles.text27,'visible','off')
set(handles.text28,'visible','on')
end
irum
irum 2011년 8월 11일

0 개 추천

actually my code is this.... i paste earlier.....i also set the property of visible off.... bt it shows me same error.... i also do dbstop... but still facing same error.....
irum
irum 2011년 8월 12일

0 개 추천

like this res = feature_ext(str_1,str_2,im9,handles) handles_ext the name of the function????
irum
irum 2011년 8월 12일

0 개 추천

Thxu M.r Walter Roberson.... Txuuu sooooo very much... i apply ur logic and i got the answer...
irum
irum 2011년 8월 12일

0 개 추천

Sir Walter Roberson !!!! i want to ask another question from you.... sir i want to code in the back of Final result.... My three static text shows value of female and 2 shows values of male...sir i want to show the Max value like this example as Female in the back of Final Result(Button)... kindly tell me what logic i apply?????
Walter Roberson
Walter Roberson 2011년 8월 15일

0 개 추천

if num_female > num_male
set(handles.text27,'String','female')
elseif num_female < num_male
set(handles.text27,'String','male')
else
set(handles.text27,'String','equal'
end
irum
irum 2011년 8월 16일

0 개 추천

ok i WIll try.......... &&&&&& thxs alot sir 4 ur help.....

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

질문:

2011년 8월 11일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by