You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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://www.mathworks.com/matlabcentral/fileexchange/11611-linear-2d-plot-with-rainbow-color), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: cline
General Information
- Version 1.0.0.0 (1.33 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
