Code covered by the BSD License  

Highlights from
Shaded area plot

5.0
5.0 | 4 ratings Rate this file 54 Downloads (last 30 days) File Size: 1.84 KB File ID: #18738
image thumbnail

Shaded area plot

by

Dave Van Tol (view profile)

 

13 Feb 2008 (Updated )

Plot two lines, then shade the area between those two lines.

| Watch this File

File Information
Description

SHADEDPLOT draws two lines on a plot and shades the area between those lines. The function allows you to choose the color of the lines and the fill area.

The SHADEDPLOT function is simple and basic. Error checking on the inputs is not performed. Handles to the graphics objects are returned, allowing the user to customize the chart outside of this function if necessary.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
18 Jan 2015 Jianliang Wang  
11 May 2012 Andres

Andres (view profile)

really useful!

28 Jan 2010 J B

J B (view profile)

is there a way to shade between beween 2 lines in the vertical (ie y is the same, x varies)

ie.
shadedplot(x1, x2, y1)

instead of

shadedplot(x1, y1, y2

Comment only
09 Jun 2008 Elena Gil  
30 Mar 2008 freddy Rojas  

Contact us