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?

Answers (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)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Asked:

on 6 Oct 2018

Edited:

on 6 Oct 2018

Community Treasure Hunt

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

Start Hunting!