How to reset (set back) hold on/off to its original value?
Ältere Kommentare anzeigen
One of my function generates some plots, and I want to set hold on or off at the end of the function.
1 Kommentar
dpb
am 17 Sep. 2015
So "just do it". What's the issue?
Antworten (2)
Tim Jackman
am 18 Sep. 2015
0 Stimmen
If you just use "hold" it will toggle the hold state, so if hold is on, it will turn it off and vice versa.
"hold on" turns on the hold state and "hold off" turns it off.
Image Analyst
am 19 Sep. 2015
0 Stimmen
There is no documented way of determining the original hold state, at least that I could find. Why do you feel you need to determine the original state? It's probably not necessary. You should know the way you want to leave your plot, and just set it accordingly.
Kategorien
Mehr zu Line Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!