how to create return to zero and non return to zero waveform for a random bit sequence

6 views (last 30 days)
want to generate return to zero and non return zero waveforms for a randomly generated bit sequence

Answers (1)

Star Strider
Star Strider on 30 Nov 2014
This will return a N-length vector of random [0,1] values:
N = 1000; % Length Of Vector
S = randi([0 1], 1, N); % Create (1xN) Vector Of Random [0 1] Values
  1 Comment
satyakumari
satyakumari on 1 Dec 2014
thank you but the problem is that it will give vector but i cant display it as a waveform . i want to display a message (containing zeros and ones) as a pulse waveform

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!