Display a plot from simulink in a seperate window to GUI

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

 Accepted Answer

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 Comments

you can also add figure before you plot your data. That will prompt your plot in another window
figure,
plot(X,Y)
tried the second one and it worked just as I wanted it.
thanks!
Yes it worked, thank you. BUT How plot the Realtime?

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Object Properties in Help Center and File Exchange

Products

Asked:

on 8 Jul 2013

Commented:

on 1 Sep 2015

Community Treasure Hunt

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

Start Hunting!