Create a block system with Matlab and open it in Simulink

1 回表示 (過去 30 日間)
Davide Selvatici
Davide Selvatici 2020 年 7 月 24 日
回答済み: Priyanshu Mishra 2020 年 7 月 28 日
Good morning,
I have created a simple loop in the workspace using the command "connect":
s = zpk('s');
G = 5/s/(0.1*s+1)^2/(0.01*s+1);
G.InputName = 'u';
G.OutputName = 'y';
K0 = tunablePID('K0', 'PID');
K0.u = 'e';
K0.y = 'u';
Sum = sumblk('e = y_0 - y');
OPT = connectOptions('Simplify',false);
Loop = connect(G, K0, Sum, {'y_0'}, {'y'}, OPT);
My question is: Can I open it with Simulink and verify that the shape is the one I wanted?

回答 (1 件)

Priyanshu Mishra
Priyanshu Mishra 2020 年 7 月 28 日
Hi Davide,
You can create the similar model in simulink. For more information , you may refer the below document :

カテゴリ

Help Center および File ExchangeVerification, Validation, and Test についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by