Easy Simulink Questions (new user)

1 回表示 (過去 30 日間)
J
J 2012 年 11 月 2 日
Hi,
I am a new user to Simulink (and in some respects Matlab). I have a couple of question regarding the program I was hoping you could clear up.
1. Is there a simple way of converting a block diagram model of a system into Matlab code and vice versa?
2. If I have say a variable psi and when I multiply this by Vt I get another variable Yrdot can I represent this in simulink using a gain block or do you have to use the multiplication block?
3. Finally, how do you create a system within a system? I've tried using the block for it but I can't connect any input or out from it.
Thanks,
J

採用された回答

Ryan G
Ryan G 2012 年 11 月 2 日
編集済み: Ryan G 2012 年 11 月 2 日
1. You cannot convert between Block Diagram and MATLAB-Code (.m file)
2) PSI (being cvariable) would be connected to a gain block with Vt defined in the workspace or in the block directly as a number
3) You need to use inports and outports to add more connections to a subsystem.
  1 件のコメント
J
J 2012 年 11 月 5 日
Thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by