Matlab connect command for dynamical systems
2 views (last 30 days)
Show older comments
When I use the command "connect" with dynamical systems matlab retourns a message like "2 states removed".
What does this mean? and most inportant is there any way to remve this message printed into the command window?
I just looked for connectOptions but I did not find a solution.
0 Comments
Answers (1)
Altaïr
on 16 Apr 2025
When using the connect command, a message like "<> states removed" indicates that the command has automatically discarded states that do not contribute to the input/output (I/O) transfer function of the interconnected model. This behavior is part of the default simplification process that connect performs to streamline the model.
To suppress this message and retain the unconnected states, the Simplify option in connectOptions can be set to false. This can be done by creating an options set and specifying it in the connect command. Here's how this can be achieved:
opt = connectOptions('Simplify', false);
sysc = connect(sys1, sys2, sys3, 'r', 'y', opt);
For more information on the connect function, refer to the MATLAB documentation by executing the following command in the MATLAB command window:
doc connect
This command provides comprehensive details about the connect function and its usage.
0 Comments
See Also
Categories
Find more on Dynamic System Models in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!