This question is closed. Reopen it to edit or answer.

Simulation Addons with Simulink - How to view Subsystems?

1 view (last 30 days)
I have a problem with the "new" Simulation Addons such as SimMechanics,SimHydraulics and so on...
I have a block (in this case a Counterbalance Valve from the SimHydraulics Package) which I would like to modify or at least see how this Block has been created. Therefore I am searching for something that enables me to gain insight into the subsystem or the C-Code.
How can I do so?

Answers (1)

Steve Miller
Steve Miller on 25 Jun 2021
Hi Andre,
For some blocks in the Simscape add-on products, we show portions of the source code so you can see how the equations are implemented. For others, you will need to rely on the documentation. The documentation can often provide a much better representation of what is going on, for a symbolic expression can often very efficiently express the physics. To make our code modular, some blocks inherit from multiple base classes which would make them difficult to interpret even if we did give you access to it.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!