MATLAB Answers

How to I efficiently connect Matlab data to Simulink Blocks?

3 ビュー (過去 30 日間)
Stephen
Stephen 2013 年 3 月 20 日
I have generated a compensator using the SISOTOOL for a system that I have already implemented in Simulink. I'm trying to figure out the most efficient way to: (1) store the compensator as a matlab variable, and (2) use that compensator (which is stored in the form of a linear system transfer function) in a discrete transfer function block
I want to automate all the steps in between, so I only have to re-run my Matlab script to generate my simulation report, but I am having trouble figuring out how to link the transfer function stored in the variable "Compensator" into a Simulink block linked to the plant that already exists.

採用された回答

Ryan G
Ryan G 2013 年 3 月 21 日
You want to use the LTI System Block. This allows you to simply enter the name of your transfer function as it appears in the workspace and it will run in Simulink. I believe this works with discrete transfer functions as well.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by