- You can use dirac function to define,
Integration of functions of 1 and 2 vaiables
3 views (last 30 days)
I have two questions:
- I have a function like this: f(x) = 1 (if x=0) and f(x)=0 (if x~=0). How can I integrate between any interval (a,b)?
- Two-dimensional function: f(x,y) is given. How can I integrate f(x,y) with respect to only the variable 'x', while keeping 'y' fixed?
Amit Bhowmick on 1 Jul 2021
intf=int(f,x) %Indefinite integration
intfd=int(f,x,[a b] %definite integration
2. For question 2 use this
syms x y