MATLAB Answers

Equation of line for double integration.

3 views (last 30 days)
Muddassir Iqbal
Muddassir Iqbal on 15 Apr 2019
Commented: Walter Roberson on 16 Apr 2019
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 Comments
Walter Roberson
Walter Roberson on 16 Apr 2019
integral2(@(x,y) ones(size(x)), low_x, high_x, low_y, high_y)

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 15 Apr 2019
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.

Community Treasure Hunt

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

Start Hunting!