how to generate a random binary sequence

54 views (last 30 days)
how to generate a random binary sequence, convert it into M-ary symbols, generate M-PAM signals? Can anyone contribute?

Answers (1)

Image Analyst
Image Analyst on 27 Mar 2015
% Generate 20 binary values:
randomBinaryNumbers = randi([0, 1], 1,20)
  1 Comment
Image Analyst
Image Analyst on 27 Mar 2015
I have no idea what that is. It's not my field of practice.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!