I want to display graph when checkbox is checked and when unchecked Graph should disappear

5 Ansichten (letzte 30 Tage)
I have attached the app i am working on , as on running the App you can see tha home tab's caliper panel check boxs are working fine as aspected but Its not working the overview tab as I code same with some minor changes which were required . I tried finding error but cant find one .
I am also attaching image of data set (as data set is to large to attach).

Antworten (1)

Abhishek Chakram
Abhishek Chakram am 20 Jun. 2022
Hi Utsav,
I understand that you want to show the graph only when the checkbox is checked and should disappear when unchecked.
You can do that by adding a ValueChangedFcn callback to the checkbox. If the value is 1 you can show the plots and if 0 you can delete the plots.
You can go through these referrences for better understanding : Checkbox Documentation, Plot a Graph, Delete Plot.
  1 Kommentar
Utsav Lakhlani
Utsav Lakhlani am 20 Jun. 2022
Yes, I know about ValueChangedFcn callback to the checkbox. Infact I have used it in my code which I have attached it above.
As I said It is working for Home Tab perfectly fine as I want , but the same code is not working In the Overview tab . I don't know why.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by