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

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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu 複雑なロジック finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!