Is it possible to indicate the colors of the lines when building the matrix.
For instance:
// here is my matrix A A = [13, 3, 4;19, 0, 1;18, 0, 2;19, 0, 1;19, 0, 1]; // when I am plotting it I am not in control of what color each line will be plot(A)
Using
plot(A, 'r')
just turns everything red (which is expected) When you try something like
plot(A, ['r', 'g','b'])
or
plot(A, 'rgb')
not working (which is not surprising)
So, is there a way to specify a color for each row?
source share