Post by Povi NikeThanks. Could you explain how to save simulation outputs under different names
and how to read this data?
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
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