フィルターのクリア

How to plot a, as varibale stored chart?

1 回表示 (過去 30 日間)
Niklas Reinshagen
Niklas Reinshagen 2020 年 5 月 27 日
回答済み: Ameer Hamza 2020 年 5 月 27 日
Hello!
I would like to to have a simple Pie Chart. Let's say three pieces. x=[ 0.5 0.2 0.3] and plot this a a Pie Chart pie(x) gives my a nice chart. But when I store the Chart in a Variable y=pie(x) this gives ma also a Pie Chart but just typing "y" just shows:
y =
1×6 graphics array:
Graphics Graphics Graphics Graphics Graphics Graphics
So is there any command to re-plot the Graphic just by typing the varaibale in where it's stored?
You would help me very much!

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 27 日
MATLAB graphics objects cannot be saved as variable by using their handles. Once the figure closes, the handle becomes invalid. To save and recreate a figure, you need to save it as a .fig file. See savefig(): https://www.mathworks.com/help/releases/R2020a/matlab/ref/savefig.html

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePie Charts についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by