I have a matrix A
of size (N, 80)
, Where values of A
are updated every N
th iteration.
How can I use a color vector of 80 corresponding to the matrix A
? I do not want to use a for
loop, as it consumes lot of time in every iteration.
I have a matrix A
of size (N, 80)
, Where values of A
are updated every N
th iteration.
How can I use a color vector of 80 corresponding to the matrix A
? I do not want to use a for
loop, as it consumes lot of time in every iteration.
You can create a color matrix color
consisting of RGB triplets for the 80 different colors you have (this would be an 80 x 3 matrix). Set it as the Default Axes Color Order by using:
>> set(groot,'defaultAxesColorOrder',colors)
>> plot(A) % Will plot the 80 columns with colors corresponding to color
To reset your default Axes colors to factory
>> set(groot,'defaultAxesColorOrder','factory')