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!