リバースモデリング 外部関数の参照方法について

3 visualizzazioni (ultimi 30 giorni)
直樹 田中
直樹 田中 il 26 Ago 2020
Commentato: 直樹 田中 il 30 Ago 2020
既存のCコードをsimulink化するにあたって、別ファイルで定義している関数を参照する場合、どのようにsimulink上で表現すればいいでしょうか?

Risposte (1)

Toshinobu Shintai
Toshinobu Shintai il 26 Ago 2020
Modificato: Toshinobu Shintai il 26 Ago 2020
モデル参照という機能を使うと、別のファイルで作成したSimulinkモデルを呼び出せるようになります。
モデル参照は、独立したモデルを呼び出すことを前提としています。C言語で言うと、~~.cと~~.hで一つにパッケージ化されたような機能をモデル化したい場合に使います。
一方でサブシステム参照という機能もあります。
こちらは、単に関数を切り出してファイル分けしたような場合のモデル化をする場合に使います。
  1 Commento
直樹 田中
直樹 田中 il 30 Ago 2020
ご回答ありがとうございます。
大変参考になりました。

Accedi per commentare.

Categorie

Scopri di più su Create Large-Scale Model Components in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!