フィルターのクリア

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

2 ビュー (過去 30 日間)
Sachin NARAIN
Sachin NARAIN 2019 年 4 月 11 日
コメント済み: Sachin NARAIN 2019 年 4 月 12 日
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...
Sachin NARAIN
Sachin NARAIN 2019 年 4 月 12 日
Thank you so much .Helps a lot

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File Exchange2-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