Want to remove one plot from the two plots in my app designer pannel when i choose Synthesis

1 visualización (últimos 30 días)
i have added two plots in my app-design for two applications one is analysis and other one synthesis
if I press analysis: i want to have both the plot to appear as per i have written, but
for synthesis i need just one plot is enough, so i want to remove/hide the second unwanted plot when i press Synthesis
condition here is, for analysis: both polts has to be appear
for synthesis: only one plot need to be appear
bottom plot need to be remove when i press synthesis. i have attached a screenshot
please help me with this...

Respuestas (1)

Adam Danz
Adam Danz el 14 de Ag. de 2021
A simple and efficient solution would be to assign the lower plot to a uipanel in app designer and to set the visibility of the uipanel to off when the synthesis button is pressed and set it to on when the analysis button is pressed.
Alternatively, the button callbacks could toggle the visibility of the axes and all of its children:
set([app.SynthesisAxes; app.SynthesisAxes.Children], 'Visible','off') % or 'on

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by