I need to put this block diagram in MATLAB (not in Simulink) and I do not know how to do it
3 ビュー (過去 30 日間)
古いコメントを表示
This is the diagram
And this is what I've got so far in code:
s = tf('s');
s1 = tf(1, [1 4]);
s2 = tf(1, 1);
s3 = tf(1, [1 0 9]);
s4 = 10;
s5 = 12;
s6 = tf([1 6],1);
0 件のコメント
回答 (2 件)
Paul
2023 年 10 月 9 日
Hi Carlos,
3 件のコメント
Paul
2023 年 10 月 9 日
編集済み: Paul
2023 年 10 月 9 日
That actually looks like it might be correct, assuing that A,B,C,D,G, and J have been defined properly. Can't tell for sure unless you post the complete code. T might be in the descriptor form because J(s) is improper (higher order numerator than denominator), but T can changed to tf or zpk form with tf(T) or zpk(T) respectively, and from there changed back to state space form if desired.
Sam Chak
2023 年 10 月 9 日
When utilizing the syntax s = tf('s') to establish a special variable 's', you gain the ability to directly formulate rational expressions for the creation of transfer function models. Employing a rational expression proves to be more intuitive, particularly when handling high-order transfer functions. Furthermore, it is advisable to generate dynamical model objects, with the 'tf' class being one of the viable options in this regard.
s = tf('s');
s1 = 1/(s + 4)
s2 = 1/s
s3 = 1/(s^2 + 9)
s4 = tf(10)
s4a = 10 % test subject
s5 = tf(12)
s6 = s + 6
whos
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Naming Conventions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!