I'm trying to create a GUI that displays an analog signal and several other events on the same axes in a mlapp figure. I've been trying to use the hold on command, which works with all the other graphs, as well as in GUIDE. All I get when I run my GUI is the last line to be plotted, which also changes with user input from slider. The slider callback is supposed to re-plot everything, but it isn't working and I've been unable to find anything in the documentation or forums. Using R2017b
Thanks!

 Réponse acceptée

Matt J
Matt J le 8 Fév 2018
Should work, but make sure you specify which axis to hold, e.g.,
hold(axHandle,'on')

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Object Properties dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by