How to set "Start simulation from steady state" in Solver Configuration block from Simscape programmatically?

How to set "Start simulation from steady state" in Solver Configuration block from Simscape programmatically?

 采纳的回答

The block property which needs to be set is 'DoDC'. If the Solver Configuration block is the current block, it works like the following to enable it:
>> set_param(gcb,'DoDC','on')
To disable it, use:
>> set_param(gcb,'DoDC','off')

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulation Setup 的更多信息

产品

版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by