フィルターのクリア

How can I plot a previous saved graph?

2 ビュー (過去 30 日間)
João Lima
João Lima 2016 年 7 月 4 日
コメント済み: Image Analyst 2016 年 8 月 24 日
Hi there,
I'm having a problem in my code. I save a graph in a function, but i need to recovery this graph to plot in my GUI element axes. How can I do this without using global?
Thanks
  2 件のコメント
Walter Roberson
Walter Roberson 2016 年 7 月 4 日
What is your coding to "save a graphic" ? I can think of several different meanings for that.
Image Analyst
Image Analyst 2016 年 8 月 24 日
Did you edit the question to say " I save a graph in a function, but i need to recovery this graph to plot in my GUI element axes. How can I do this without using global?"
Or was that the original question? I'm not sure what your edit was, and the answers so far don't seem like they would apply with your current post.

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

回答 (1 件)

Image Analyst
Image Analyst 2016 年 7 月 4 日
If you saved it as a .fig, just use open() (I think).
If you saved the graph as an image, use imread() and then imshow().
If you saved the individual variables to a .mat file with save(), then use load() and replot everything using plot() or whatever functions you used the first time.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by