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