Main Content

slExportFavoriteCommands

Export favorite commands from Simulink quick access toolbar

Since R2021b

Description

slExportFavoriteCommands(file) exports the contents of the Simulink® Favorite Commands gallery to the specified file.

example

Examples

collapse all

Suppose you create a set of favorite commands in the Simulink Favorite Commands gallery that you want to share with team members. You can export the contents of your Simulink Favorite Commands gallery to a file.

For example, export the gallery contents to a file named slFavorites.mat in the B:\path\ directory.

In the MATLAB® Command Window, enter:

slExportFavoriteCommands('B:\path\slFavorites.mat');

Input Arguments

collapse all

File name or path, specified as a character vector or string scalar.

Example: slExportFavoriteCommands('B:\path\slFavorites.mat')

Data Types: char | string

Version History

Introduced in R2021b