Enables continuous-time MATLAB® functions to write to initialized persistent variables. If disabled, continuous-time MATLAB functions can only initialize and read persistent variables. To initialize a persistent variable, check that it is empty before assigning a value. For more information, see Initialize Persistent Variables in MATLAB Functions.
Category:Simulation Target
Default: Off
Continuous-time MATLAB functions can only initialize and read persistent variables.
Continuous-time MATLAB functions can write to initialized persistent variables.
Enable this configuration to ensure legacy functionality in models designed in releases older than R2017b.
Parameter:
LegacyBehaviorForPersistentVarInContinuousTime |
Value:
'on' | 'off' | |
Default:
'off' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |