You are on page 1of 4

clear all

clc
close all

%Zahin Tazwar
% 1921486643

syms s t;
H = (1)/((s^2)*(s+1));

U1 = 1;
U2 = 1/s;
U3 = 1/(s^2);

Y1 = U1*H
y1t = ilaplace(Y1)

Y2 = U2*H
y2t = ilaplace(Y2)

Y3 = U3*H
y3t = ilaplace(Y3)

figure(1)
ezplot(y1t)
title('Implse Response')

figure(2)
ezplot(y2t)
title('Step Response')

figure(3)
ezplot(y3t)
title('Ramp Respone')

Y1 =

1/(s^2*(s + 1))

y1t =

t + exp(-t) - 1

Y2 =

1/(s^3*(s + 1))

y2t =

1
t^2/2 - exp(-t) - t + 1

Y3 =

1/(s^4*(s + 1))

y3t =

t + exp(-t) - t^2/2 + t^3/6 - 1

2
3
Published with MATLAB® R2018b

You might also like