%Dennis Shinkonis & Gais Elmadari
%ECE 460 Control Systems
%Lab 4
%Tuesday 24 Sept 2002
%File name  Lab4_1
ltiview

clear all
home
t=[0:0.01:4]';
num=[0 20];
den=[1 2];
systm =tf(num,den);            %defines system transfer function
ys = step(systm,t);             %finds step response for time interval defined by t

plot(t,ys)
xlabel('The t axis')
ylabel('The y axis')
title('The unit step response')
grid on
hold on
load [y1]
m=[0:.02:4]';
y1_scaled=y1*(-1/0.4);
y2=y1_scaled(20:length(y1_scaled));
length(y2);
tnew=[0 : .02 : 3.62]';
plot(tnew,y2)
