<< uicontrol | Graphics functions | view >> |
RGB = validatecolor(colors) |
RGB = validatecolor(colors, sz) |
1-by-3 vector, m-by-3 matrix, character vector, cell array of character vectors or string array.
'one' (default) or 'multiple'
RGB values: RGB triplet or matrix of RGB triplets.
The validatecolor function is a color validation function that checks whether a given color is valid according to Nelson standards.
It takes a color argument as input and returns an error if the color is not valid.
RGB = validatecolor('red')
RGB = validatecolor('purple')
RGB = validatecolor({'#8000FF','#00FF00','#FF9900'}, 'multiple')
RGB = validatecolor({'red','green','blue'},'multiple')
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET