MATLAB: How to check if a value is a correct color


Whether there is a function like
logical = isvalidcolor(value)
to check if some value may be used like a color (one of values specified in ColorSpec e.g.)

Best Answer

Not that I'm aware of - there's just not that much need - though you could write one if you want.