how to perform inverse laplace to transfer function create by tf

hi,
is there any way to do the inverse Laplace to the transfer function create by tf? i tried ilaplace but it show error.
Error in Laplace_Calculator>pushbutton1_Callback (line 86) ft = ilaplace(fs);

 Accepted Answer

Consider the following approach:
Gs=tf(1,[1 3 2]);
[b,a]=residue(Gs.Numerator{1},Gs.Denominator{1});
temp=0;
syms s t
for i=1:numel(a)
temp=temp+(b(i)/(s+a(i)));
end
timeDomainFunc=ilaplace(temp,t)

Asked:

on 28 Dec 2017

Answered:

on 28 Dec 2017

Community Treasure Hunt

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

Start Hunting!