%Dennis Shinkonis & Gais Elmadari
%ECE 460 Control Systems
%Lab 4
%Tuesday 6 Oct 2002
%Lab4_3 

clear all
home
%ltiview
num4=[-.5 -2]
den4=[1 2]
t=[0:.001:4]';
transfer_function4=4*tf(num4,den4)
step_response4=step(transfer_function4,t);
plot(t,step_response4)
xlabel('The t axis')
ylabel('The y axis')
title('The  4*unit step response')
grid on

hold on
load y3
m=[0:.02:4]';
u=length(y3);
tnew=[0 : .02 : 3.52]';
ynew4=y3(25:length(y3));
plot(tnew,ynew4)