How to solve this equation for Laplace transform with matlab?
2 views (last 30 days)
Show older comments
10 Comments
Walter Roberson
on 28 Feb 2020
Your zeta is a symbolic expression in k and y according to symvar(), but it also contains k2 inside fourier() calls.
Perhaps you should do
kvals = 0:100;
yvals = linspace(-200,200,101);
[K,Y] = meshgrid(kvals, yvals);
Zsym = subs(zeta, {k, y}, {K, Y});
Z = double(Zsym);
surf(K,Y,Z)
However in practice this does not work: after the substitution, double() is not able to resolve some of the values to numeric. I discovered that some of them can be converted to a better form by using simplify(Zsym), but that is slow.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!