This may help you
x = -pi:pi/10:pi;
y=sin(x);
y2=0.8*y;
area(x,y,'Facecolor','r')
hold on
area(x,y2,'Facecolor',[1 1 1])
hold off
For more help please see
doc area
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!