How to change Simulink Block properties from Command Window
8 次查看(过去 30 天)
显示 更早的评论
Hello Everyone,
I'm trying to change a block properties from command window.
For example, in, "Revolute Joint: Revolute" How to change Torque from None to Automatically Computed.
to
I'm trying to use, "set_param" but It is not usefull.
Can someone please help me.
Thanks in advance.
Regards,
Yatish.
0 个评论
采纳的回答
Fangjun Jiang
2021-1-20
set_param('YourBlockPath','TorqueActuationMode','ComputedTorque')
2 个评论
Fangjun Jiang
2021-1-20
Usually here web(fullfile(docroot, 'simulink/slref/block-specific-parameters.html#bvegf16')) but this is a masked parameter so you need to follow masked parameters.
I set the block parameter manually and use get_param() to get the actual value.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!