program block diagram in matlab, not simulink
20 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have an task to calculate the transferfunction with an given, complicated block diagram. So I simplify the block diagram until I have the complete transfer function in the last block - not a problem. Now I have the next task which tells me to proof that my previous calculations are correct using matlab (not simulink, which would be the third task; and I have already done that to make sure my transfer function from task a) was correct)
So my question is: how do I translate a block diagram with given transfer functions into matlab code? I can easily define all the blocks' transfer functions like G1=tf(c1,d1);, but how do I tell matlab in code where a sum is, where a branch splits etc?
I would realy appreciate any help, as that is something our professor does not show in his vids and leaves to our own to figure out -.-
Thank you very much,
Dennis
0 件のコメント
採用された回答
Paul
2020 年 11 月 30 日
Look at
doc connect
and see if that helps.
4 件のコメント
Paul
2020 年 11 月 30 日
Feel free to ask any follow-up questions if something is still unclear after you've read the doc page(s).
Also, an alternaltive approach is to use the interconnection commands, like
doc series
doc parallel
doc feedback
You can use the these commands to implement what you probably already did by hand.
You can also use LTI system algebra, though that's not recommended.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Communications Toolbox についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!