フィルターのクリア

Display a plot from simulink in a seperate window to GUI

1 回表示 (過去 30 日間)
Henry
Henry 2013 年 7 月 8 日
コメント済み: Ali Osman 2015 年 9 月 1 日
Hi,
I'm using a GUI to run a simulink model and then plotting the results.
However, when i plot those results, the graph shows up in my GUI window behind the buttons/text boxes and is difficult to see.
Is there a way so that the plots will display in a new window? Much like they do when you select a scope in simulink for example.
Thanks

採用された回答

David Sanchez
David Sanchez 2013 年 7 月 8 日
You have several options for that. You could place an axes object within your GUI. This axes will have a tag assigned (see property inspector). Just tell plot where to plot the data by referencing your axes:
plot(X,Y,'Parent', handles.axes_tag)
  3 件のコメント
Henry
Henry 2013 年 7 月 8 日
tried the second one and it worked just as I wanted it.
thanks!
Ali Osman
Ali Osman 2015 年 9 月 1 日
Yes it worked, thank you. BUT How plot the Realtime?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by