Equation of line for double integration.

3 次查看(过去 30 天)
I have two vectors, I want to double integrate the vector along y-axis with respect to vector along x-axis, maybe by using integral2 command. I have difficulty in forming equation for the double integral, please help me
  7 个评论
Muddassir Iqbal
Muddassir Iqbal 2019-4-16
Dear Sir, I have to do double integration. Which is not possible by merely multiplying x-axis with corresponding y-axis.
How about making aline equation and then using Integral2 command.
Regards
Muddassir
Walter Roberson
Walter Roberson 2019-4-16
integral2(@(x,y) ones(size(x)), low_x, high_x, low_y, high_y)

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2019-4-15
I suspect that you will want at least one cumtrapz() and then either cumtrapz() again or else trapz() depending on what you are trying to calculate.

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by