By default MATLAB "recycles" every 6 plot line colors. Replace default "recycle every 6 lines" behavior of MATLAB graphics functions (e.g. plot) by N different colors usin this simple script.
Igal (2021). Multiple plot line colors (https://www.mathworks.com/matlabcentral/fileexchange/49170-multiple-plot-line-colors), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!