What code do I need to write to simulate this block diagram?
2 views (last 30 days)
Show older comments
0 Comments
Answers (1)
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
0 Comments
See Also
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!