How to numerically integrate a vector over time?

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.

回答 (1 件)

Star Strider
Star Strider 2020 年 3 月 10 日

0 投票

If you want the cumulative integral of your vector, use the cumtrapz function.

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

リリース

R2018a

質問済み:

2020 年 3 月 10 日

回答済み:

2020 年 3 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by