Thread Subject: How to plot XY graph from multiple simulations results in simulink?

Subject: How to plot XY graph from multiple simulations results in simulink?

From: Povi Nike

Date: 30 Nov, 2008 17:24:02

Message: 1 of 4

For example I have electrical circuit with voltage source and load. I change load every simulation and I get different values of current. Is there possibility somehow to record measurement values of every simulation and to get for example voltampere plot. Maybe is possible to do it in one simulation.

Subject: How to plot XY graph from multiple simulations results in

From: checker

Date: 1 Dec, 2008 00:26:40

Message: 2 of 4

On Nov 30, 10:24=A0am, "Povi Nike" <mr_dj...@yahoo.com> wrote:
> For example I have electrical circuit =A0with voltage source and load. I =
change load every simulation and I get different values of current. Is ther=
e possibility somehow to record measurement values of every simulation and =
to get for example voltampere plot. Maybe is possible to do it in one simul=
ation.

HI Povi,

This can be easily solved by using 'to workspace' blocks and then
saving the simulation outputs under different names.

-Chris

Subject: How to plot XY graph from multiple simulations results in

From: Povi Nike

Date: 1 Dec, 2008 20:55:04

Message: 3 of 4

Thanks. Could you explain how to save simulation outputs under different names
and how to read this data?



checker <checkeraz69@yahoo.com> wrote in message <23f96c9a-9b2d-4714-a7ca-a9e10ce795e4@w1g2000prk.googlegroups.com>...
> On Nov 30, 10:24=A0am, "Povi Nike" <mr_dj...@yahoo.com> wrote:
> > For example I have electrical circuit =A0with voltage source and load. I =
> change load every simulation and I get different values of current. Is ther=
> e possibility somehow to record measurement values of every simulation and =
> to get for example voltampere plot. Maybe is possible to do it in one simul=
> ation.
>
> HI Povi,
>
> This can be easily solved by using 'to workspace' blocks and then
> saving the simulation outputs under different names.
>
> -Chris

Subject: How to plot XY graph from multiple simulations results in

From: checker

Date: 2 Dec, 2008 00:32:26

Message: 4 of 4

On Dec 1, 1:55=A0pm, "Povi Nike" <mr_dj...@yahoo.com> wrote:
> Thanks. Could you explain how to save simulation outputs under different =
names
> and how to read this data?
>
> checker <checkera...@yahoo.com> wrote in message <23f96c9a-9b2d-4714-a7ca=
-a9e10ce79...@w1g2000prk.googlegroups.com>...
> > On Nov 30, 10:24=3DA0am, "Povi Nike" <mr_dj...@yahoo.com> wrote:
> > > For example I have electrical circuit =3DA0with voltage source and lo=
ad. I =3D
> > change load every simulation and I get different values of current. Is =
ther=3D
> > e possibility somehow to record measurement values of every simulation =
and =3D
> > to get for example voltampere plot. Maybe is possible to do it in one s=
imul=3D
> > ation.
>
> > HI Povi,
>
> > This can be easily solved by using 'to workspace' blocks and then
> > saving the simulation outputs under different names.
>
> > -Chris

Sure,

First, people generally prefer bottom posting to make things easier to
read (notice this reply is at the bottom of the original posts).

You'll need to develop a script that runs your simulations for you.
See the function 'sim'. It give you programatic control over the
simulink simulation function. Set up a loop that:
1) sets the input vectors to the desired values.
2) runs the sim
3) renames the output values

If you don't like the script, simply run your sim, then rename your
vectors at the matlab prompt.

At the end of your sim script (or manual sims), you could just do the
XY plot of all the data. Save the data in native format if you like
for future use.

-Chris

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com