필터 지우기
필터 지우기

disappearance of pushbutton

조회 수: 4 (최근 30일)
ram
ram 2011년 7월 27일
[EDIT: 20110727 09:56 CDT - reformat - WDR]
hi,
im creating gui penal for that i am creating m.file . While run that program one pushbutton disappeared. I wrote program for that,
try
[filename pathname] = uigetfile( ...
{'*.m;*.fig;*.mat;*.mdl','MATLAB Files (*.m,*.fig,*.mat,*.mdl)';
'*.m', 'M-files (*.m)'; ...
'*.fig','Figures (*.fig)'; ...
'*.mat','MAT-files (*.mat)'; ...
'*.mdl','Models (*.mdl)'; ...
'*.*', 'All Files (*.*)'}, ...
'Pick a file');
set(handles.edit23,'String',[pathname filename]);
guidata(hObject,handles)
catch Er
set(handles.textstatus,'String',['Error:',Er.message]);
end
But i used 4 bushbuttons by same programe, one button only disappeared, what s reason . help me........
  댓글 수: 2
Yoav Livneh
Yoav Livneh 2011년 7월 27일
Please format your code using the "{} Code" button so we can read it.
Jan
Jan 2011년 7월 27일
Which is is disappearing button?! Is there any chance that we could find this information in the posted code?

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

답변 (1개)

Jan
Jan 2011년 7월 27일
It is absolutely impossible for us to guess, which line causes the disaapearence of the button. But you can set some breakpoints in your code and step through the program line by line. Then you can locate the line and post it here, if you have further questions.
  댓글 수: 2
ram
ram 2011년 7월 27일
thank u for your reply, but when i run that program that button disappeared then how can i set breakpoint in that?
Jan
Jan 2011년 7월 27일
Are you familiar with the debugger?
Set a breakpoint in the first line of the program. Then run the program line by line until the button disappears. Then the current line causes the troubles.
As far as I can see, the code you've posted does neither create nor delete a button.

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

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by