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

1 view (last 30 days)
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 Comments
Geoff Hayes
Geoff Hayes on 12 Apr 2019
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...

Sign in to comment.

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!