How can I plot laplace transformed functions?
44 次查看(过去 30 天)
显示 更早的评论
How can I plot laplace transformed functions? Since the function should be imaginary I can not use fplot, can I? For example, how would I plot this:
syms x
f = sin(x);
l = laplace(f);
Thanks in advance.
2 个评论
Paul
2021-11-29
syms x
f = sin(x);
l = laplace(f)
l is a function of complex variable, s. So it depend on what kind of plot you want to make.
采纳的回答
Star Strider
2021-11-29
It might be easier to do this outside the Symbolic Math Toolbox.
That aside, try this —
syms x s js rs sigma omega
f = sin(x);
l = laplace(f)
lc(sigma,omega) = subs(l,{s},{sigma+1j*omega}) % Define As Complex, With Complex Arguments
figure
fsurf(lc, [ -0.1 0 -2*pi 2*pi ], 'MeshDensity',125)
xlabel('\sigma')
ylabel('\omega')
set(gca, 'YTick',[-2*pi : pi/2 : 2*pi], 'YTickLabel',compose('%.1f\\pi',(-2:0.5:2)))
axis([-0.1 0.1 -2*pi 2*pi])
Plotting it in two dimensions is of course an option, however the function has three dimensions (
,amplitude) so a three-dimensional plot is appropriate. The two complex-conjugate poles at
are clearly visible.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/817239/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/817244/image.png)
.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!