Info

此问题已关闭。 请重新打开它进行编辑或回答。

how to generate two bits of data

1 次查看(过去 30 天)
Ayesha Punjabi
Ayesha Punjabi 2019-2-27
关闭: Walter Roberson 2019-2-27
tag_arr = randi[0:1,1:5]
this gives an output of
1 0 0 0 1
but i want to generate two bits binary data like the expected output should be
10 01 11 10 11 (random two bits binary data)
How should i code sytax for that?? Kindly help

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by