Square Pulses With Unitstep

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

% Generation of square signal with step signal

cc

t = 0:0.001:12;

x1 = [ t>=0 & t<=2 ];


x2 = [ t>=4 & t<=6 ];
x3 = [ t>=8 & t<=10 ];

x = x1+x2+x3;

plot(t,x)
grid
xlabel('Time - t')
ylabel('amplitude')
title('Train of square pulses - 21075A1008')
axis([0 12 0 1.2])

Published with MATLAB® R2020a

You might also like