How to reset (set back) hold on/off to its original value?

11 ビュー (過去 30 日間)
Mr M.
Mr M. 2015 年 9 月 16 日
回答済み: Image Analyst 2015 年 9 月 19 日
One of my function generates some plots, and I want to set hold on or off at the end of the function.
  1 件のコメント
dpb
dpb 2015 年 9 月 17 日
So "just do it". What's the issue?

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

回答 (2 件)

Tim Jackman
Tim Jackman 2015 年 9 月 18 日
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
Image Analyst 2015 年 9 月 19 日
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.

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by