4.75

4.8 | 4 ratings Rate this file 16 Downloads (last 30 days) File Size: 1.33 KB File ID: #11611

Linear 2D Plot with Rainbow Color

by Kun Liu

 

01 Jul 2006 (Updated 05 Jul 2006)

This function plots a line colored like a rainbow.

| Watch this File

File Information
Description

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

Acknowledgements
This submission has inspired the following:
cline
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
31 Jul 2006 Jessica Swan  
01 Jun 2008 L. Zhao

This function is simple but useful to change the color.
Good job!

31 Mar 2009 Itamar

Thanks a lot!
Very useful to me. Very good.

06 Dec 2011 Andrew Davis

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.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized Kun Liu 22 Oct 2008 08:31:55
rainbow Kun Liu 22 Oct 2008 08:31:56
2d plot Kun Liu 22 Oct 2008 08:31:56
plotting Kun Liu 22 Oct 2008 08:31:56
colorful Kun Liu 22 Oct 2008 08:31:56
graphics Kun Liu 22 Oct 2008 08:31:56

Contact us at files@mathworks.com