Documentation

我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

get

Class: Simulink.SimulationOutput
Package: Simulink

Access and display values of simulation results

Syntax


output = simOut.get('VarName')

Description

output = simOut.get('VarName') accepts one variable name. Specify VarName inside single quotes.

Input Arguments

VarName

Name of logged variable for which you seek values.

Output Arguments

Value

Value of the logged variable name specified in input.

Examples

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.get('youtNew')

Alternatives

Simulink.SimulationOutput.find

Was this topic helpful?