From: karthik on
??? 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
Well apparently you do NOT have a control named edit3 on your GUI.
Check again.
From: karthik on
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
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.