version (1.5 KB) by Richard Medlock
Returns a list of all available system colours.


Updated 28 Apr 2003

No License



Returns a structure containing all the default system colors.

GETSYSCOL('matlab') - default
Returns colors in the standard matlab color format 0-1.

GETSYSCOL('rgb') - not case sensitive
Returns colors as individual RGB values using the range 0-255.

Returns the specified color from the list below in the specified
format ('matlab' or 'rgb')

Colors returned by this function:

ActiveBorder, HotTrackingColor,
ActiveTitle, InactiveBorder
AppWorkSpace, InactiveTitle
Background, InactiveTitleText
ButtonAlternateFace, InfoText
ButtonDkShadow, InfoWindow
ButtonFace, Menu
ButtonHilight, MenuBar
ButtonLight, MenuHilight
ButtonShadow, MenuText
ButtonText, Scrollbar
GradientActiveTitle, TitleText
GradientInactiveTitle, Window
GrayText, WindowFrame
Hilight, WindowText

Only works on windows platform.

Cite As

Richard Medlock (2022). GETSYSCOL.m (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!