Borrar filtros
Borrar filtros

How to implement integration of an array in MATLAB?

1 visualización (últimos 30 días)
ANANTA BIJOY BHADRA
ANANTA BIJOY BHADRA el 30 de Oct. de 2022
Comentada: J. Alex Lee el 31 de Oct. de 2022
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 comentarios
Torsten
Torsten el 30 de Oct. de 2022
Editada: Torsten el 30 de Oct. de 2022
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 el 31 de Oct. de 2022
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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by