RGB = validatecolor(colors)
RGB = validatecolor(colors, sz)
| Parameter | Description |
|---|---|
| colors | 1-by-3 vector, m-by-3 matrix, character vector, cell array of character vectors or string array. |
| sz | 'one' (default) or 'multiple' |
| Parameter | Description |
|---|---|
| RGB | 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 |