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

4 views (last 30 days)
直樹 田中
直樹 田中 on 26 Aug 2020
Commented: 直樹 田中 on 30 Aug 2020
既存のCコードをsimulink化するにあたって、別ファイルで定義している関数を参照する場合、どのようにsimulink上で表現すればいいでしょうか?

Answers (1)

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

Sign in to comment.

Categories

Find more on Create Large-Scale Model Components in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!