How do i create checkboxes near each plots in a subplot window ?

I have two graphs plotted in a subplot.Now ,near each plot i want a checkbox to be shown .
This will help the user know which plot he has selected .How do i do this ?
Any help will be appreciated.
Thank you

 채택된 답변

Rik
Rik 2019년 4월 8일

0 개 추천

댓글 수: 6

Sachin NARAIN
Sachin NARAIN 2019년 4월 8일
편집: Sachin NARAIN 2019년 4월 8일
Yeah .The boxes shoud be positioned just near to the plot and it should return the value of the graph .Can you give me an example of this so that when the user selects the checkbox, the value it returns ,is the value of the graph selected?
Can you give an example graph to work with, and can you describe what the desired outcome should be? 'the value of the graph' is very vague, and it is also unclear what you mean by returning a value in this context.
there is a vriable val which has coordinates of a two signals .I have attached the screenshot of how i want the graphs and the checkboxes to be .
By value i mean , mmay be a function call which tells me wther the 1st plot was chosen or 2nd one .Capture.PNG
if you store the handle to the checkbox, you can use val=get(h_checkbox,'Value') to load the state of the checkbox.
Did this suggestion solve your problem? If so, please consider marking it as accepted answer. It will make it easier for other people with the same question to find an answer. If this didn't solve your question, please comment with what problems you are still having.
Yes , it solved a part of the problem .I am going to post another question on the same logic putting up my code

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

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

질문:

2019년 4월 8일

댓글:

2019년 4월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by