Clear Filters
Clear Filters

I can able to browse the image but the image is not displaying in the gui ..any body plz help....i m getting thi error..Reference to non-existent field 'edit1'.

1 view (last 30 days)
Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
handle.output=hObject;
[fn pn]=uigetfile('*.bmp','selet bmp file');
complete=strcat(pn,fn);
set(handles.edit1,'string',complete);
I=bmpread(complete);
imshow(I,[]);
guidata(hObject,handles);
  1 Comment
Geoff Hayes
Geoff Hayes on 20 Sep 2016
aditya - is edit1 a valid field within the handles structure? Put a breakpoint at the line
set(handles.edit1,'string',complete);
and run your GUI. When the debugger pauses at this line, look at handles. Does it have a field named edit1? If not, which is true given the error message, then have you changed the Tag property from one of your edit controls to something else?

Sign in to comment.

Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!