Simulinkのシミュレーション実行中に、MATLABからブロック出力にアクセスする。
显示 更早的评论
Simulinkのシミュレーション実行中に、MATLABからブロック出力にアクセスしたいです。
例えば、下記のようなSimulinkモデルにおいて、MATLABのスクリプトを作成したいです。
Sumの出力が ”50” を越えたら、Constantの値を"0"にする(set_param('untitled/Constant','Value',num2str(0)))。
MATLABからブロックの出力の値にアクセスするには、どのよう記述すればよろしいでしょうか。

回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Function 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!