필터 지우기
필터 지우기

How to make a button visible in GUIDE?

조회 수: 3 (최근 30일)
TheBeginner
TheBeginner 2013년 1월 10일
Hi,
I am using Matlab 2012a and I've been trying to make an edit box visible/invisible in GUIDE.
I've tried the following sentence but it doesn't work : set(hObjet,'Visibility','off')
Thank you!
  댓글 수: 1
Jan
Jan 2013년 1월 10일
편집: Jan 2013년 1월 10일
Please explain, what "it doesn't work" explicitly means: do you get an error message, does nothing get invisible, or the worng object? Perhaps you only forgot a "c" in the fieldname?
The error message should enlight you.

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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 10일
Set(hObject, 'visible','off')

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2013년 1월 10일
set(hObject, 'visible','off');
Will only work if you are int he callback from that pushbutton. Otherwise hObject will be a handle to the caller object. It is safer and a better practice to use:
set(handles.pushbuttonx,'visible','off');
Where 'pushbuttonx' is the 'Tag' of the oushbutton you wish to make invisble.
  댓글 수: 1
TheBeginner
TheBeginner 2013년 1월 10일
Ok, thank you, I didn't really understand what was in hObject. Thank you!

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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by