Question: clc clear all; % Generating the bit pattern with each bit 5 0 samples long nB = 2 0 ; % number of bits b

clc
clear all;
% Generating the bit pattern with each bit 50 samples long
nB =20; % number of bits
b = randi([01],1,nB);
% convert bit to NRZ pattern
sB =40; % sample per bit
bNRZ = ones(sB, nB);
bNRZ = bNRZ.*(2*repmat(b,sB,1)-1);
bNRZ = reshape(bNRZ,1, nB*sB);
% plot original bit sequence
subplot(4,1,1); plot(bNRZ); axis([-1 length(bNRZ)+1-1.51.5]);grid on;
title('Original Bit Sequence');

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!