Programmatic

Run simulation from MATLAB® command line, run multiple simulations using different model parameters or input data, sweep parameters across a range of values

Functions

sim Simulate dynamic system
model Execute particular phase of simulation of model
find Access and display values of simulation results
get Access and display values of simulation results
who List names of top-level data logging objects in Simulink data log
set_param Set system and block parameter values
get_param Get parameter names and values
getInitialState Return initial state structure of block diagram
setBlockSimState Set SimState of individual Stateflow Chart, MATLAB Function, or S-function block
getBlockSimState Access SimState of individual Stateflow Chart, MATLAB Function, or S-function block
add_exec_event_listener Register listener for block method execution event

Classes

Simulink.SimState.ModelSimState Access SimState snapshot data
Was this topic helpful?