%Niveen Bazaraa
%Brandon Harris
%Vladi Gergov
%ECE 460 Control Systems
%Lab 4
%File name  lab4_1

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,'red')
xlabel('The t axis')
ylabel('The y axis')
title('The unit step response of Go(s)')
grid on
hold on
load y1
y1_scaled=y1*(-1/0.4);
tnew=[0 : .01 : 1.91]';
plot(tnew,y1_scaled)