Professional Documents
Culture Documents
Unitstep Function
Unitstep Function
Unitstep Function
cc
t = -3:0.01:3;
x = zeros(1,length(t));
for i = 1:length(t)
if t(i)>=0;
x(i)=1;
else
x(i)=0;
end
end
plot(t,x)
grid
xlabel('Time - t')
ylabel('amplitude')
title('unit step-function - 21075A1008')
axis([-3 3 -1.2 1.2])