What code do I need to write to simulate this block diagram?

2 views (last 30 days)

Answers (1)

Sebastian Castro
Sebastian Castro on 18 Jun 2015
Do you plan on using MATLAB or Simulink?
In MATLAB, you can use the tf function to make a transfer function. Then, you can string linear systems together and connect them in loops using functions like feedback (this page has nice examples).
In Simulink, there are Transfer Fcn blocks which work very similarly to the MATLAB approach. The Modeling a Continuous System documentation page might be a good start too.
- Sebastian

Categories

Find more on Programmatic Model Editing 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!