How to numerically integrate a vector over time?

12 visualizaciones (últimos 30 días)
Baris Bilgin Senol
Baris Bilgin Senol el 10 de Mzo. de 2020
Respondida: Star Strider el 10 de Mzo. de 2020
I'm trying to obtain flux density in a iron core from my measurements. I've measured the data v(t) with the corresponding t values in vectors. How can I integrate v(t) with respect to t to obtain flux phi(t) and not just get a value of the integration? In other words, I need the result of the integration to be a vector of same length, not a numerical value.

Respuestas (1)

Star Strider
Star Strider el 10 de Mzo. de 2020
If you want the cumulative integral of your vector, use the cumtrapz function.

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by