Code covered by the BSD License  

Highlights from
"Greater Than" Fill

Be the first to rate this file! 10 Downloads (last 30 days) File Size: 2.04 KB File ID: #34876
image thumbnail

"Greater Than" Fill

by William Hobbs

 

01 Feb 2012 (Updated 01 Feb 2012)

Fill the areas between two curves that cross at multiple pts, with different colors under each curve

| Watch this File

File Information
Description

This function fills the areas between two curves that intersect at multiple
points. The area where curve 1 > curve 2 is filled in one color, and the
area where curve 2 > curve 1 is filled in another color.

It performs piecewise interpolation so that the area is completely filled, even if the intersections are between defined points.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Shade area between two curves

Required Products MATLAB
MATLAB release MATLAB 7.12 (2011a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
01 Feb 2012

Changed title.

Tag Activity for this File
Tag Applied By Date/Time
fill William Hobbs 01 Feb 2012 15:55:55
area between curves William Hobbs 01 Feb 2012 15:55:55

Contact us at files@mathworks.com