필터 지우기
필터 지우기

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 CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by