필터 지우기
필터 지우기

How would I code the trapezoidal rule and simpsons rule for this question with MATLAB. The problem is that the upper y limit is 0.5+0.5x and this is causing problems with my code.

조회 수: 1 (최근 30일)
<<
>>

답변 (1개)

Soumya Saxena
Soumya Saxena 2017년 9월 14일
Please consider using the "trapz" function:
Also consider the example on the "integral2" function documentation:
Please also refer to the following file exchange link for simpson's rule:

카테고리

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