[linespec, colorspec, markerspec, msg] = colstyle (str)
[linespec, colorspec, markerspec, msg] = colstyle (str, 'plot')
| Parameter | Description |
|---|---|
| str | a row vector of character or scalar string: line specification. |
| 'plot' | linespec returns 'none' and not '' with this option. |
| 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. |
colstyle parses color and style from string.
[l, c, m, msg] = colstyle('r:x')
[l, c, m, msg] = colstyle('*')
[l, c, m, msg] = colstyle('*', 'plot')
| Version | Description |
|---|---|
| 1.0.0 | initial version |