who

Class: Simulink.SimulationOutput
Package: Simulink

Access and display output variable names of simulation

Syntax

simOutVar = simOut.who

Description

simOutVar = simOut.who returns the names of all simulation output variables, including workspace variables.

Output Arguments

simOutVar

String array of output variable names of simulation.

Examples

Simulate vdp and store the string values of the output variable names.

simOut = sim('vdp','SimulationMode','rapid','AbsTol','1e-5',...
         'SaveState','on','StateSaveName','xoutNew',...
         'SaveOutput','on','OutputSaveName','youtNew');
simOutVar = simOut.who
Was this topic helpful?