Shaded area plot

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

You are now following this Submission

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.

Cite As

Dave Van Tol (2026). Shaded area plot (https://www.mathworks.com/matlabcentral/fileexchange/18738-shaded-area-plot), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0