How to change Simulink Block properties from Command Window
8 ビュー (過去 30 日間)
古いコメントを表示
Yatish Chandra Chitluri
2021 年 1 月 20 日
コメント済み: Fangjun Jiang
2021 年 1 月 20 日
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!