Thread Subject: Shaded band

Subject: Shaded band

From: Alex Johnston

Date: 9 Feb, 2010 15:40:21

Message: 1 of 2

I am generating some plots in Matlab and I want to have a colored/shaded band that indicates a desirable region of values. For example, say I plot y=sin(x) and the desirable values are from y=-0.75 to 0.75. I want the region from y=-0.75 to y=0.75 to be shaded or colored in for all x values.

Alex

Subject: Shaded band

From: Darren Rowland

Date: 10 Feb, 2010 02:40:21

Message: 2 of 2

Hi Alex

I would probably use a patch
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/patch.html

Hth,
Darren

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