using quadl to find area between 2 curves
1 次查看(过去 30 天)
显示 更早的评论
i need to find the area between the 2 curves using quadl and trapz i was able to do it using just trapz but im not sure how to implement quadl into my code so it will work can somebody help here is my code so far
x = linspace(0,pi);
y1 = sin(x);
y2 = abs(sin(2*x))/2;
plot(x,y1,x,y2)
grid on
set(gca,'ylim',[0 1]);
set(gca,'ytick',0:0.1:1);
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!