フィルターのクリア

How can I calculate a Integral.

1 回表示 (過去 30 日間)
Emanuel Bicho
Emanuel Bicho 2015 年 6 月 9 日
回答済み: Titus Edelhofer 2015 年 6 月 9 日
Hello , and thanks for reading my question.
The problem is, i have a vector Error = [] , 60 values between 0 and 1 . I have another array that represents time . Time = [1,2,3...60]
I need to calculate the integral between 0 and 60 off Error(Time) dr;
How can i do this ?

採用された回答

Titus Edelhofer
Titus Edelhofer 2015 年 6 月 9 日
Hi,
use the trapz function:
trapz(Time, Error)
Titus

その他の回答 (1 件)

Torsten
Torsten 2015 年 6 月 9 日
integral = error(1)/2 + sum(error(2:59)) + error(60)/2.
Best wishes
Torsten.

カテゴリ

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