Code covered by the BSD License
4.75
by Kun Liu
01 Jul 2006 (Updated 05 Jul 2006)
This function plots a line colored like a rainbow.
| Watch this File
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
This function is simple but useful to change the color. Good job!
Thanks a lot! Very useful to me. Very good.
Works great -- exactly what I was looking for. I've modified it slightly to accept both row and column vectors; I will email you the changes.
Contact us at files@mathworks.com