フィルターのクリア

Restore default figure parameter before running a Script

57 ビュー (過去 30 日間)
Alejandro Fernández
Alejandro Fernández 2020 年 11 月 1 日
コメント済み: Souarv De 2022 年 7 月 5 日
Hi everyone, I was wondering if anyone knew that after running the file found in here (I also attach the file) you can reset the default parameters of the figures that come in matlab.
For example I want to have the figure 1 with the parameteres in the script and the figure 2 and the next ones with the default parameters in matlab (in this order). Thank you so much.
figure_configuration_IEEE_standard
figure(1)
plot(2:10)
% Restore parameters of all next figures
figure(2)
plot(5:10)
  2 件のコメント
Walter Roberson
Walter Roberson 2020 年 11 月 1 日
(to summarize, the code sets a whole bunch of root "default" properties.)
Alejandro Fernández
Alejandro Fernández 2020 年 11 月 1 日
Yes, and the question is how could I restore the previous defaults

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

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 1 日
Try resetting the graphics root
reset(groot); % or reset(0)
Try this
figure_configuration_IEEE_standard
figure(1)
plot(2:10)
% Restore parameters of all next figures
reset(groot)
figure(2)
plot(5:10)
  4 件のコメント
Gilbert huang
Gilbert huang 2022 年 5 月 30 日
Thank you very much!!!
Souarv De
Souarv De 2022 年 7 月 5 日
Thank You.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpecifying Target for Graphics Output についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by