필터 지우기
필터 지우기

How can I integrate an equation with using trapezoidal rule?

조회 수: 1 (최근 30일)
ahmet kuzucanli
ahmet kuzucanli 2016년 1월 4일
답변: dpb 2016년 1월 4일
There is an equation like y=cosx. I want to integrate this equation from 0 to pi. However, I should use the trapezoidal rule to find integral. There are 5,7,...,43 points(h) that are equally spaced. For each number of points(h) I should find the Integral. For instance h=5, I=? this process should be repeated for all h values from 5 to 43. regards,

답변 (1개)

dpb
dpb 2016년 1월 4일
This pretty clearly would be a homework type problem, so a) what have you tried so far, and b) what part of
doc trapz % seems to cause confusion?

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by