Clear Filters
Clear Filters

How to change Simulink Block properties from Command Window

5 views (last 30 days)
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.
I'm trying to use, "set_param" but It is not usefull.
Can someone please help me.
Thanks in advance.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 20 Jan 2021
Yatish Chandra Chitluri
Yatish Chandra Chitluri on 20 Jan 2021
Hello @Fangjun Jiang Thank you. this command works but how do you know about 'Computed Torque'. I've been wasting my time for a while now.
Is there any page about these commands?
Fangjun Jiang
Fangjun Jiang on 20 Jan 2021
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.

Sign in to comment.

More Answers (0)


Find more on Simulink Environment Customization in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!