フィルターのクリア

integral of a numerical vectors

1 回表示 (過去 30 日間)
itai
itai 2014 年 11 月 24 日
コメント済み: Zoltán Csáti 2014 年 11 月 24 日
Hi,
I have 2 vectors containing time and Voltage values respectively: 1. vector containing voltage values - "Volt" 2. vector containing time values - "Time" I want to calculate the integral of "Volt" vector as function of the time, the range is from the first value of the vector to the last value.
please help me, Itai

回答 (1 件)

Zoltán Csáti
Zoltán Csáti 2014 年 11 月 24 日
Use trapz :
trapz(Time,Volt);
  3 件のコメント
Zoltán Csáti
Zoltán Csáti 2014 年 11 月 24 日
You are wellcome.
Zoltán Csáti
Zoltán Csáti 2014 年 11 月 24 日
Perhaps you can accept my answer if it was helpful.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by