Error with Integral2 where func is a constant number

So i tried to calculate double integral of a func f. It worked fine if f is a "real" function (like f=@(x,y) 2*.x). But when i tried with f is a const number, such as f= @(x,y) 1, it didnt work, Can someone help me fix it.

Categories

Find more on Programming in Help Center and File Exchange

Tags

Asked:

on 13 Apr 2022

Answered:

on 13 Apr 2022

Community Treasure Hunt

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

Start Hunting!