How do you do a numerical integration of a delta function in MATLAB?
Show older comments
Say I have a function f(x,y) and a number A. My function g(x,y)=1 when A-f(x,y)>0 and 0 when A-f(x,y)<0 and 0 when A-f(x,y)=0. I would like to do a double integral over x and y (x goes from 0 to 1, and y goes from x-1 to -x+1) of the delta-like function g(x,y).
I am trying to use integral2, but I don't know what function in matlab I could use for g(x,y).
Thanks!
Accepted Answer
More Answers (1)
Walter Roberson
on 4 Dec 2016
0 votes
Sometimes you need to rewrite integral2 in terms of nested integral() so that you can pass in the waypoints option
Categories
Find more on Function Creation 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!