Conversion to double from sym is not possible ?

t=-1:0.001:1; a=1; syms t f=t laplace(f) plot(t,a)
trying to plot ramp function's laplace transform but we are getting an error like conversion to double from sym is not possible?

回答(1 个)

t=-1:0.001:1;
a=1;
plot(t,a*ones(1,numel(t)))
syms t
f=t
lap=laplace(f)
%figure() or hold on your wish here
fplot(lap)

类别

帮助中心File Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by