colstyle
Parse color and style from string.
📝Syntax
[linespec, colorspec, markerspec, msg] = colstyle (str)
[linespec, colorspec, markerspec, msg] = colstyle (str, 'plot')
📥Input Arguments
Parameter Description
str a row vector of character or scalar string: line specification.
'plot' linespec returns 'none' and not '' with this option.
📤Output Arguments
Parameter Description
linespec a string: line type.
colorspec a string: color part.
markerspec a string: marker part.
msg a string: contain the error message string.
📄Description

colstyle parses color and style from string.

💡Examples
[l, c, m, msg] = colstyle('r:x')
[l, c, m, msg] = colstyle('*')
[l, c, m, msg] = colstyle('*', 'plot')
🔗See Also
colormap
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub