For the code below:
x=0:pi/50:2*pi;y1=x.^2;baseval1=20;baseval2=3;clf;H1=area(x,y1,baseval1);H=area(x,y1);set(H(1),'FaceColor',[1 0.5 0]);
how do I shade the area under the curve just between x = 3 to x = 4?
shade area under curve
x=0:pi/50:2*pi;y1=x.^2;baseval1=20;baseval2=3;clf;H1=area(x,y1,baseval1);H=area(x,y1);set(H(1),'FaceColor',[1 0.5 0]);
Best Answer