This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Shape preservation


At each time step use derivative information to improve integration accuracy.

Category: Solver


Default: Disable all

Disable all

Do not perform Shape preservation on any signals.

Enable all

Perform Shape preservation on all signals.


  • The default setting (Disable all) usually provides good accuracy for most models.

  • Setting to Enable all will increase accuracy in those models having signals whose derivative exhibits a high rate of change, but simulation time may be increased.


This parameter is enabled only if you use a continuous-step solver.

Command-Line Information

Parameter: ShapePreserveControl
Value: 'EnableAll | 'DisableAll
Default: 'DisableAll

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics