MATLAB: How to set “Start simulation from steady state” in Solver Configuration block from Simscape programmatically

apiconfigurationget_paramprogrammaticallyset_paramSimscapesolverstatesteady

Best Answer

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')