필터 지우기
필터 지우기

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'.

조회 수: 2 (최근 30일)
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
Geoff Hayes
Geoff Hayes 2016년 9월 20일
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?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by