How can I calculate a Integral.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Emanuel Bicho
am 9 Jun. 2015
Beantwortet: Titus Edelhofer
am 9 Jun. 2015
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 ?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Torsten
am 9 Jun. 2015
integral = error(1)/2 + sum(error(2:59)) + error(60)/2.
Best wishes
Torsten.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!