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