Violinplot-Matlab icon indicating copy to clipboard operation
Violinplot-Matlab copied to clipboard

Undefined colororder error

Open pcpollak opened this issue 3 years ago • 2 comments

Every time I try to run violinplot function on my own or the sample data I get the following error:

Undefined function or variable 'colororder'.

Error in Violin (line 168) C = colororder;

Error in violinplot (line 161) violins(n) = Violin({thisData}, n, varargin{:});

Does anyone know why this is happening?

pcpollak avatar May 30 '22 13:05 pcpollak

Are you, by any chance, running a very old version of Matlab? colororder was introduced in 2019b.

bastibe avatar May 30 '22 14:05 bastibe

Yes I am running 2019a Thank you for pointing this out!

pcpollak avatar May 31 '22 11:05 pcpollak