0% found this document useful (0 votes)
27 views1 page

Square Pulses With Unitstep

The document describes generating a signal composed of three square pulses of equal width spaced equally apart in time by using step signals and logical operators to combine them, and plots the resulting composite signal.

Uploaded by

AZAZEL STAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

Square Pulses With Unitstep

The document describes generating a signal composed of three square pulses of equal width spaced equally apart in time by using step signals and logical operators to combine them, and plots the resulting composite signal.

Uploaded by

AZAZEL STAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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