Computing the double integral of a surface

2 views (last 30 days)
Andromeda
Andromeda on 30 Oct 2021
Commented: Andromeda on 30 Oct 2021
I am trying to compute the double integral of a surface but I keep getting the error "First input argument must be a function handle." and I do not understand what that means. How can I get around this error? See attached picture below.

Accepted Answer

Alan Stevens
Alan Stevens on 30 Oct 2021
Like this
syms x y
z = @(x,y) x.^2 + y.^2;
surface_int = integral2(z,1,2,4,9);
disp(surface_int)
233.3333
  3 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!