restore
R2026bDescription
restores the configuration set, signal logging, fast-restart state, and any other simulation
arguments changed by the simulator_out = restore(simulator)setup
function.
Examples
Input Arguments
Output Arguments
Tips
You can add a cleanup function to ensure that the
restorefunction always runs, even when the optimization generates an error.simulator = sdo.SimulationTest('mymodel'); simulator = setup(simulator); cleanupObj = onCleanup(@()restore(simulator));
Version History
Introduced in R2024a
