Main Content


Options for the connect command


opt = connectOptions returns the default options for connect.


opt = connectOptions(Name,Value) returns an options set with the options specified by one or more Name,Value pair arguments.


collapse all

Use connectOptions to cause the connect command to retain unconnected states in an interconnected model.

Suppose you have dynamic system models sys1, sys2, and sys3. Combine these dynamic system models to build an interconnected model with input 'r' and output 'y'. Set the option to retain states in the model that do not contribute to the dynamics in the path from 'r' to 'y'.

opt = connectOptions('Simplify',false);
sysc = connect(sys1,sys2,sys3,'r','y',opt);

Input Arguments

collapse all

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: 'Simplify',false

Automatic elimination of unconnected states, specified as either true or false.

  • trueconnect eliminates all states that do not contribute to the I/O transfer function from the specified inputs to the specified outputs of the interconnected system.

  • falseconnect retains unconnected states. This option can be useful, for example, when you want to compute the interconnected system response from known initial state values of the components.

Data Types: logical

Output Arguments

collapse all

Options for connect, returned as a connectOptions options set. Use opt as the last argument to connect when interconnecting models.

Version History

Introduced in R2013b

See Also