필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Replace several if loops

조회 수: 2 (최근 30일)
Frank
Frank 2015년 1월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I have a GUI with a plot and several checkboxes. If a checkbox is ticked, a certain piece of information is added to the plot (which is different for every checkbox).
To check if the boxes are ticked, I am currently using
if checkbox1==1
plot(...)
end
for every single button. This is rather complicated and not really intuitive. Are there any elegant options (functions?) to check if the box has been ticked and to allocate a plot command to this box?
Thanks!

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by