A short function to colour plots with all the colours of the rainbow. Gives better output than trying to select good colours in advance.
figure; hold on; x = 1:10;
plot(x,x);
plot(x,-x);
colourplot;
Cite As
Will Robertson (2026). colourplot (https://uk.mathworks.com/matlabcentral/fileexchange/11235-colourplot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2006a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Annotations in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
