How to determine sign properties (++, +-, --) of sum block using matlab coding

1 回表示 (過去 30 日間)
Abhibrata Adhikary
Abhibrata Adhikary 2022 年 6 月 20 日
回答済み: Jon 2022 年 6 月 20 日
I have two sum blocks, one with sign (++) and other with (+-). Will help of matlab coding, how will I be able to extract these properties. Appreciate all the help.

採用された回答

Jon
Jon 2022 年 6 月 20 日
Suppose your Simulink model is called myModel, and the sum blocks are named Sum1 and Sum2.
You can get the signs, for example for Sum1 using:
signs = get_param('myModel/Sum1','Inputs');
You can set the signs using
set_param('myModel/Sum1','Inputs','|+-')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by