Main Content

who

Access and display output variable names of simulation

Syntax

simOutVar = who(simOut)
simOutVar = simOut.who

Description

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

simOutVar = simOut.who is a syntax with dot notation to return the names of all simulation output variables, including workspace variables.

Input Arguments

expand all

Simulation output to get metadata from.

Output Arguments

simOutVar

Character vector array of output variable names of simulation.

Examples

Simulate vdp and store the character vector values of the output variable names.

simOut = sim('vdp','SaveState','on','StateSaveName','xoutNew',...
         'SaveOutput','on','OutputSaveName','youtNew');
simOutVar = simOut.who