From: Atreyee Bhattacharya on
Hi

I need to shade the area between two curves ( representated by two columns in a data set). on a plot and I can't seem to be able to do this. Any suggestions?

Thanks a ton

A
From: Steven Lord on

"Atreyee Bhattacharya" <bhattac(a)fas.harvard.edu> wrote in message
news:hu93i2$a1r$1(a)fred.mathworks.com...
> Hi
>
> I need to shade the area between two curves ( representated by two columns
> in a data set). on a plot and I can't seem to be able to do this. Any
> suggestions?

HELP FILL.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com


From: Alan B on
"Atreyee Bhattacharya" <bhattac(a)fas.harvard.edu> wrote in message <hu93i2$a1r$1(a)fred.mathworks.com>...
> Hi
>
> I need to shade the area between two curves ( representated by two columns in a data set). on a plot and I can't seem to be able to do this. Any suggestions?
>
> Thanks a ton
>
> A

You can use patch() or fill(), with a little tweaking of the inputs. Or, you can use area() and remove the first graphics handle that is returned as an output variable.

h=area(1:10,randn(10,2));
delete(h(1))
From: us on
"Atreyee Bhattacharya" <bhattac(a)fas.harvard.edu> wrote in message <hu93i2$a1r$1(a)fred.mathworks.com>...
> Hi
>
> I need to shade the area between two curves ( representated by two columns in a data set). on a plot and I can't seem to be able to do this. Any suggestions?
>
> Thanks a ton
>
> A

this may be helpful

http://www.mathworks.com/matlabcentral/fileexchange/19436

us