Main Content

Simulink.sdi.clearPreferences

Restore Simulation Data Inspector preferences to default settings

Description

Simulink.sdi.clearPreferences restores all Simulation Data Inspector preferences, including archive behavior, plot layouts and styles, and signal table configuration, to their default values. For more information about Simulation Data Inspector preferences, see Configure Simulation Data Inspector.

The Simulink.sdi.clearPreferences function does not affect plotted signals or data logged to the Simulation Data Inspector.

example

Examples

collapse all

To restore default values to all Simulation Data Inspector preferences programmatically, use Simulink.sdi.clearPreferences.

Simulink.sdi.clearPreferences

Set the Simulation Data Inspector run naming rule such that it displays the model name followed by the run number.

Simulink.sdi.setRunNamingRule("<model_name> Run <run_index>")

Restore all Simulation Data Inspector preferences, including the run naming rule.

Simulink.sdi.clear

Check that the default run naming rule has been restored.

nameRule = Simulink.sdi.getRunNamingRule
nameRule =

    'Run <run_index>: <model_name>'

Version History

Introduced in R2017a