4.66667

4.7 | 3 ratings Rate this file 27 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)

Code covered by BSD License  

This function plots a line colored like a rainbow.

Download Now | 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 (3)
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.

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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com