Stateflowで​別ファイルのモデルを​利用可能か

3 views (last 30 days)
okaran
okaran on 13 Dec 2018
Answered: Shoumei on 4 Mar 2019
MATLABにおいて別のファイルを関数として利用する場合、例えば
function output = func_example(a)
output = a + 1;
end
と記述された関数ファイル (func_example.m) を作成し、
val = func_example(1)
などとスクリプトファイル (main_example.m) 内で記述する事で利用出来ますが、Stateflowにおいても別のslxファイルのモデルを関数として利用する事は可能でしょうか。ご助言頂けると幸いです。

Accepted Answer

Shoumei
Shoumei on 4 Mar 2019
はい、可能です。
SimulinkベースのステートをStateflowチャートの中に入れて、さらにそのSimulinkモデルの中にモデル参照ブロックを置けば、別Simulinkモデルを呼び出して使用することが可能です。

More Answers (0)

Categories

Find more on 複雑なロジック in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!