Main Content

slPersistToolstripComponent

Specify whether custom Simulink Toolstrip component persists across MATLAB sessions

Description

example

slPersistToolstripComponent(component,persistence) specifies whether to add the path for the specified custom Simulink® Toolstrip component to the list of paths to restore for each MATLAB® session.

Examples

collapse all

Suppose you create a custom tab that you want to remain in the Simulink Toolstrip the next time you open Simulink.

Specify that the component persists in future MATLAB sessions. For example, specify that a component named custom persists across sessions. In the MATLAB Command Window, enter:

slPersistToolstripComponent("custom",true);

Input Arguments

collapse all

Name of the component to persist across sessions, specified as a character vector or string scalar.

Data Types: char | string

Option for component to persist across sessions, specified as true or false.

Data Types: logical

Introduced in R2021b