필터 지우기
필터 지우기

Radio Button and Panel GUIDE

조회 수: 1 (최근 30일)
Melvin
Melvin 2012년 2월 24일
댓글: asma arafat 2017년 5월 16일
What code should i write under a callback of the radio button when you want to click a radio button, the visibility of the panel is being controlled. Radio button clicked, Panel appears. Radio Button unclick, panel hides...what do you think? Thank you everyone
  댓글 수: 1
Melvin
Melvin 2012년 2월 24일
the panel---i mean a panel you created on a gui...so only two objects are present on the gui. The radio button and a panel...thank you

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

답변 (1개)

G A
G A 2012년 2월 24일
if (get(hObject,'Value') == get(hObject,'Max'))
set (handles.my_uipanel,'Visible','on');
else
set (handles.my_uipanel,'Visible','off');
end
  댓글 수: 8
G A
G A 2012년 2월 27일
Instead of checking for Value 1 or 0 (true or false), for radio button you have to check for Value 'Max' or 'Min'
asma arafat
asma arafat 2017년 5월 16일
hello, i want to show panel with some texts when i click push button only and hide it when i am not click it. any help? thanks

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

카테고리

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