Class: Simulink.SimulationOutput
Package: Simulink
Access and display values of simulation results
output
= simOut.find('VarName
')
accepts
one variable name. Specify output
= simOut.find('VarName
')VarName
inside
single quotes.
|
Name of logged variable for which you seek values. |
|
Value of the logged variable name specified in input. |
Simulate vdp
and store the values of the
variable youtNew in yout.
simOut = sim('vdp','SimulationMode','rapid','AbsTol','1e-5',... 'SaveState','on','StateSaveName','xoutNew',... 'SaveOutput','on','OutputSaveName','youtNew'); yout = simOut.find('youtNew')
A simpler alternative is to use dot notation. For example, to access data for the
xoutNew
output variable, you can use this
command:
simOut.xoutNew
Another alternative is to use Simulink.SimulationOutput.who
and
then Simulink.SimulationOutput.get
.