Stateflowで別ファイルのモデルを利用可能か
3 views (last 30 days)
Show older comments
MATLABにおいて別のファイルを関数として利用する場合、例えば
function output = func_example(a)
output = a + 1;
end
と記述された関数ファイル (func_example.m) を作成し、
val = func_example(1)
などとスクリプトファイル (main_example.m) 内で記述する事で利用出来ますが、Stateflowにおいても別のslxファイルのモデルを関数として利用する事は可能でしょうか。ご助言頂けると幸いです。
0 Comments
Accepted Answer
Shoumei
on 4 Mar 2019
はい、可能です。
SimulinkベースのステートをStateflowチャートの中に入れて、さらにそのSimulinkモデルの中にモデル参照ブロックを置けば、別Simulinkモデルを呼び出して使用することが可能です。
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!