who - Get names of editable properties on Simulink.SimulationOutput
object - MATLAB ([original](https://in.mathworks.com/help/simulink/slref/simulink.simulationoutput.who.html)) ([raw](?raw))
Main Content
Get names of editable properties on Simulink.SimulationOutput
object
Syntax
Description
who([simOut](#mw%5Fd101846d-3573-4a4a-aa5d-f6a9b1786fbc))
lists the names of user-added properties and properties that contain logged data on theSimulink.SimulationOutput
object simOut
.
[props](#mw%5F33231a97-504b-4057-bbc6-1b953e57e4fb) = who([simOut](#mw%5Fd101846d-3573-4a4a-aa5d-f6a9b1786fbc))
returns a cell array of character vectors that contains the names of user-added properties and properties that contain logged data on the Simulink.SimulationOutput
object simOut
.
Examples
A Simulink.SimulationOutput
object contains all data logged from simulation as well as simulation metadata and error messages that occur during simulation. You can use the who
function to list properties on a Simulink.SimulationOutput
object created by logging data from simulation or by a user.
Open the model LoggingBlocks
, which uses multiple blocks and signal logging to log simulation data.
mdl = "LoggingBlocks"; open_system(mdl);
Create a Simulink.SimulationInput
object to configure a simulation that runs to a stop time of 20
.
simIn = Simulink.SimulationInput(mdl); simIn = setModelParameter(simIn,"StopTime","20");
Simulate the model.
Use the who
function to inspect the contents of the simulation results.
dataLogs = 5×1 cell {'logsout' } {'recordout'} {'simout' } {'tout' } {'yout' }
Use the get
function to access the data for the variable simout
.
simout = get(simOut,dataLogs{3})
timeseries
Common Properties: Name: 'Big Sine' Time: [51x1 double] TimeInfo: [1x1 tsdata.timemetadata] Data: [51x1 double] DataInfo: [1x1 tsdata.datametadata]
More properties, Methods
Input Arguments
Output Arguments
Names of user-added properties and properties that contain logged data, returned as a cell array of character vectors.
Version History
Introduced in R2009b