From: karthik on 29 Mar 2010 09:20 ??? Reference to non-existent field 'edit3'. Error in ==> NEWGUI3>pushbutton1_Callback at 188 set(handles.edit3,'string',k); the above is the error i got while designing gui... if a particular condition satisfies, the string 'satisfied ' should be displayed in the editbox.. i wrote coding for this inside the callback of a push button... but it is saying that error.. why that control is said as non existent one...
From: ImageAnalyst on 29 Mar 2010 09:38 Well apparently you do NOT have a control named edit3 on your GUI. Check again.
From: karthik on 29 Mar 2010 09:44 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <6371cd50-9203-4159-ac3d-05b455132a86(a)30g2000yqi.googlegroups.com>... > Well apparently you do NOT have a control named edit3 on your GUI. > Check again. i have a control named edit3... but its showing like that.. i will give the code snippet below.. please help me.. function pushbutton1_Callback(hObject, eventdata, handles) %% some logic k=cputime-starttime; handles.k=k; guidata(hObject,handles); %% now setting part set(handles.edit3,'string',k); set(handles.edit4,'string','done'); function edit3_Callback(hObject, eventdata, handles) % hObject handle to edit3 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit3 as text % str2double(get(hObject,'String')) returns contents of edit3 as a double
From: ImageAnalyst on 29 Mar 2010 11:36 Edit fields take a string in the "String" property. Why don't you pass it a string? You're passing it a double. Use the num2str() function.
|
Pages: 1 Prev: Counting number of gold pixels in a picture Next: Is it a bug in matlab2010a? |