Main Content

slResetFavoriteCommands

Reset Simulink Favorite Commands gallery

Description

example

backup = slResetFavoriteCommands resets the Simulink® Favorite Commands gallery and saves a backup of the previous state of the gallery.

Examples

collapse all

Suppose you want to delete all the commands and custom categories in the Simulink Favorite Commands gallery.

In the MATLAB® Command Window, enter:

slResetFavoriteCommands;

Output Arguments

collapse all

Backup of previous state, returned as a character vector.

To restore the previous state, you can pass the returned value as the input to the slImportFavoriteCommands function and overwrite the current state.

Introduced in R2021b