How to implement integration of an array in MATLAB?

조회 수: 4 (최근 30일)
ANANTA BIJOY BHADRA
ANANTA BIJOY BHADRA 2022년 10월 30일
댓글: J. Alex Lee 2022년 10월 31일
I have been using cumtrapz for integrating an array. However, the function I am integrating is a cosine wave and it is expressed by an array. Can I use any other command or code that uses any other method for integration? I am not sure whether any other method is available? If so, how to implement that?
  댓글 수: 2
Torsten
Torsten 2022년 10월 30일
편집: Torsten 2022년 10월 30일
I have been using cumtrapz for integrating an array. However, the function I am integrating is a cosine wave and it is expressed by an array.
So cumtrapz should be well-suited, shouldn't it ?
J. Alex Lee
J. Alex Lee 2022년 10월 31일
i'm pretty sure i have seen implementations of simpson's rule on FEX. It would be pretty easy to code up a generalized Newton-Cotes methods, and probably start with FEX too

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by