How to determine sign properties (++, +-, --) of sum block using matlab coding
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!