Reputation: 1
I need a plot of 24 lines with different non-repeating colors. How to set different colors for lines (24 lines in total) in the loglog function using a matrix created with distinguishable_colors?
I get the error: Incorrect number assignment. Missing [] around the left hand side.
The dimensions of the elements are the same and equal [1 248].
Code:
col = distinguishable_colors(24);
figure
x = loglog(a1.tau, a1.sm, a2.tau, a2.sm, ..., a24.tau, a24.sm);
x.Color = col;
Upvotes: 0
Views: 277