Simulinkのシ​ミュレーション実行中​に、MATLABから​ブロック出力にアクセ​スする。

3 vues (au cours des 30 derniers jours)
Mamoru Mabuchi
Mamoru Mabuchi le 12 Jan 2021
Simulinkのシミュレーション実行中に、MATLABからブロック出力にアクセスしたいです。
例えば、下記のようなSimulinkモデルにおいて、MATLABのスクリプトを作成したいです。
Sumの出力が ”50” を越えたら、Constantの値を"0"にする(set_param('untitled/Constant','Value',num2str(0)))。
MATLABからブロックの出力の値にアクセスするには、どのよう記述すればよろしいでしょうか。

Réponses (0)

Catégories

En savoir plus sur Simulink Function dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!