Linear 2D Plot with Rainbow Color
Version 1.0.0.0 (1.33 KB) by
Kun Liu
This function plots a line colored like a rainbow.
This function plots a line colored like a rainbow. The line is defined by x versus y pairs, which is the same as a regular 2-D plot. This program is inspired by Jonathan Zarge's post at http://groups.google.com/group/comp.soft-sys.matlab/browse_frm/thread/70b82349e102d792?tvc=1&q=matlab+2d+plot+rainbow&hl=en
Cite As
Kun Liu (2026). Linear 2D Plot with Rainbow Color (https://se.mathworks.com/matlabcentral/fileexchange/11611-linear-2d-plot-with-rainbow-color), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R13
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Annotations in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: cline
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
