필터 지우기
필터 지우기

How do i know which checkbox was chosen and from which figure in a subplot of figures ?

조회 수: 2 (최근 30일)
I have two figures and each figure has subplots of two random signals .i have added a check box near each corresponding plot .
Now for the code to plot these graphs and which box was clicked, i have created a function 'checkbox_plot'(whose code i have attached).
This function tells me which box was chosen in a variable 'M' but it gives me information for only one figure ( not all together) .i.e.i am not able to differentiate to which checkbox from which plot was chosen.
My question is how do i store which checkbbox was chosen from the figure and simultaneously knowing which figure was selected 'Figure 1' or Figure 2' and so on....
Can you also tell me how to store the names of the plot also along with the checkbox selection ?
Codes are attached below along with the plot the signals
Any help will be appreciated.Thank you
  댓글 수: 4
Geoff Hayes
Geoff Hayes 2019년 4월 12일
Sachin - you can put this line of code in the callback where hObj is defined. And this will give you the handle to the figure...but not necessarily the figure number...

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by