How do you plot a Midpoint Riemann Sum

조회 수: 4 (최근 30일)
espitz
espitz 2019년 3월 28일
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개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by