How can I calculate a Integral.
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Torsten
2015년 6월 9일
integral = error(1)/2 + sum(error(2:59)) + error(60)/2.
Best wishes
Torsten.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!