File Exchange

image thumbnail

Shaded area plot

version 1.0 (1.84 KB) by

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



View License

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.

Comments and Ratings (8)

qingping li

Eva Popova


Andres (view profile)

really useful!


J B (view profile)

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

shadedplot(x1, x2, y1)

instead of

shadedplot(x1, y1, y2

Elena Gil

freddy Rojas

MATLAB Release
MATLAB 7.5 (R2007b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today