Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
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 commentaires
Geoff Hayes
Geoff Hayes le 12 Avr 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...

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by