Thread Subject: Shading area under a curve -- partially

Subject: Shading area under a curve -- partially

From: Geico Caveman

Date: 9 Jul, 2011 07:25:12

Message: 1 of 2

I have a plot:

plot(x,y)

I want to shade area under the curve but only in the ranges, [x1,x2],
[x3,x4], etc. (assume all such ranges are disjoint).

A simple area plot shades the entire area under the curve. No use.

Subject: Shading area under a curve -- partially

From: Steven_Lord

Date: 9 Jul, 2011 22:07:15

Message: 2 of 2



"Geico Caveman" <spammers-go-here@spam.invalid> wrote in message
news:2011070902251216807-spammersgohere@spaminvalid...
> I have a plot:
>
> plot(x,y)
>
> I want to shade area under the curve but only in the ranges, [x1,x2],
> [x3,x4], etc. (assume all such ranges are disjoint).
>
> A simple area plot shades the entire area under the curve. No use.

HELP FILL.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com