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

1 次查看(过去 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 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by