How can I calculate a Integral.
이전 댓글 표시
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 ?
채택된 답변
추가 답변 (1개)
Torsten
2015년 6월 9일
0 개 추천
integral = error(1)/2 + sum(error(2:59)) + error(60)/2.
Best wishes
Torsten.
카테고리
도움말 센터 및 File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!