Error with Integral2 where func is a constant number
Show older comments
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.

Answers (1)
Torsten
on 13 Apr 2022
f=@(x,y) ones(size(x))
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!