How do you plot a Midpoint Riemann Sum
10 ビュー (過去 30 日間)
古いコメントを表示
function[] = graph_integration_method(fhandle,lo,hi,N)
hold on;
fplot(fhandle,[lo, hi]);
x = linspace(lo,hi,N+1);
dx = diff(x);
for index = 1:N
rectangle('position',[x(index) 0 dx(index) fhandle(index)/2]);
end
end
0 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!