Contenido principal

Simulink.removeStaleModelViewStates

R2026b

Remove externally stored model view settings file

Since R2026b

    Description

    Simulink.removeStaleModelViewStates removes externally stored model view settings files for deleted models from your preference folder.

    example

    Simulink.removeStaleModelViewStates(true) removes all externally stored model view settings files from your preference folder. This option removes model view settings even for models that are not deleted.

    example

    Examples

    collapse all

    To remove externally stored model view settings for deleted models, use this command.

    Simulink.removeStaleModelViewStates

    To remove all externally stored model view settings files, including settings for models that still exist, use this command.

    Simulink.removeStaleModelViewStates(true)

    Version History

    Introduced in R2026b