Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

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','SimulationMode','rapid','AbsTol','1e-5',...
         'SaveState','on','StateSaveName','xoutNew',...
         'SaveOutput','on','OutputSaveName','youtNew');
simOutVar = simOut.who

Alternatives

A simpler alternative to use dot notation. For example, to access data for the xoutNew output variable, you can use this command:

simOut.xoutNew
Was this topic helpful?