|
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
|