how to generate a random binary sequence

13 次查看(过去 30 天)
how to generate a random binary sequence, convert it into M-ary symbols, generate M-PAM signals? Can anyone contribute?

回答(1 个)

Image Analyst
Image Analyst 2015-3-27
% Generate 20 binary values:
randomBinaryNumbers = randi([0, 1], 1,20)

Community Treasure Hunt

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

Start Hunting!

Translated by