clc,close all,clear
%
% Tf2f.m - plot system responses using transfer function and 
%          inverse transfer function
s = tf('s');
G = 1/((s+2)*(s+3));
[yy,tt] = step(G,5);

syms s t
G = 1/((s+2)*(s+3)) * 1/s;  % Add step responses !!!
G = ilaplace(G);
t = tt;
f = eval(G);

figure;
plot(tt,yy,tt,f,'--r','LineWidth',2)
grid on
xlabel('Time[s]');
ylabel('Amplitude')
legend('G(s)','f(t)')

