Simulink Reference | ![]() ![]() |
Task-Oriented List of Commands |
List of commands arranged by tasks to be performed |
Specifying Parameters and Object Paths |
How to specify parameters and object paths required by model construction commands |
Task-Oriented List of Commands
This table indicates the tasks performed by the commands described in this chapter. The reference section of this chapter lists the commands in alphabetical order.
Task |
Command |
Create a new Simulink system. |
|
Open an existing system. |
|
Close a system window. |
|
Save a system. |
|
Find a system, block, line, or annotation. |
|
Add a new block to a system. |
|
Delete a block from a system. |
|
Replace a block in a system. |
|
Add a line to a system. |
|
Delete a line from a system. |
|
Add a parameter to a system. |
|
Get a parameter value. |
|
Set parameter values. |
|
Delete a system parameter. |
|
Get the pathname of the current block. |
|
Get the pathname of the current system. |
|
Get the handle of the current block. |
|
Get the name of the root-level system. |
|
Open the Simulink block library. |
|
Discretize a model. |
|
Open the Model Discretizer GUI
|
|
Compare two models. |
|
Specifying Parameters and Object Paths
This section explains how to specify parameters and object paths required by model construction commands.
How to Specify Parameters for the Commands
The commands described in this chapter require that you specify arguments that describe a system, block, or block parameter. Appendix , "Model and Block Parameters, provides comprehensive tables of model and block parameters.
How to Specify a Path for a Simulink Object
Many of the commands described in this chapter require that you identify a Simulink system or block. Identify systems and blocks by specifying their paths:
mdl
extension.
If the block name includes a newline or carriage return, specify the block name as a string vector and use sprintf('\n')
as the newline character. For example, these lines assign the newline character to cr
, then get the value for the Signal Generator block's Amplitude parameter.
If the block name includes a slash character (/), you repeat the slash when you specify the block name. For example, to get the value of the Location
parameter for the block named Signal/Noise
in the mymodel
system.
![]() | trim | add_block | ![]() |