Main Content

simulink.sampletimecolors.storePalette

Add new simulink.sampletimecolors.Palette object to preferences

Since R2024b

Description

simulink.sampletimecolors.storePalette(paletteObject) stores the simulink.sampletimecolors.Palette object, specified by paletteObject to MATLAB® preferences.

Note

If you specify a paletteObject that already exists in the preferences, the new paletteObject object overwrites the existing palette object of the same name.

example

Examples

collapse all

Create a custom color palette.

pltObj = simulink.sampletimecolors.Palette;

Store the palette in MATLAB preferences. Using the simulink.sampletimecolors.storePalette function.

simulink.sampletimecolors.storePalette(pltObj)

Storing the palette does not automatically apply the palette to the current or future MATLAB sessions. To use the stored palette, use the simulink.sampletimecolors.applyPalette function.

Input Arguments

collapse all

Color palette object used to specify customized sample time colors, specified as a simulink.sampletimecolors.Palette object.

pltObj = simulink.sampletimecolors.Palette;
simulink.sampletimecolors.storePalette(pltObj)

Version History

Introduced in R2024b