MATLAB: How to perform inverse laplace to transfer function create by tf

inverse laplace

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);

Best 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)