Overlapped range with integral

3 次查看(过去 30 天)
Lee Lee
Lee Lee 2017-4-15
A=[ 0.2 2 2.5 3 2.4 2.9 ] is used to represent the range of Xmin and Xmax of integral
With the elements of array A, I can easily write the code:
integral(function,A(1),A(2)) + integral(function,A(3),A(4))+ integral(function,A(5),A(6))
But I don't want the overlapped range 2.5~2.9 between A(3)~A(6) that will make the result larger
How can I deal with this overlapped range ? Thanks a lot.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by