Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

how to generate two bits of data

2 views (last 30 days)
Ayesha Punjabi
Ayesha Punjabi on 27 Feb 2019
Closed: Walter Roberson on 27 Feb 2019
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

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!