I am working with pdetool of MATLAB for solving certain parabolic pde.
As you know there are prescribed format in pdetool for example in the parabolic case we have
$$du^{'}+{\rm div}(c*{\rm grad}(u))+a*u=f$$
where the values of $d,c,a,f$ should be specified.
My question is that can we enter $f$ or other parameters as a MATLAB function?
for example Dirac delta or anything else.
Thanks a lot for your kind attention.
Suppose you define a function $f(x,y) = y^2\tan(x)$ via
then when you solve the PDE, define $x$ and $y$ as symbolic variables, and do the following: