The definition of variables

HI FOR ALL...
please i need help in some problems .. 1- i need to create vector with binary number randomly . 2- i need to input numbers to algorithm and these numbers are binary . 3- i have " The modulo 2^32 addition denoted by ⊞ " operation ... how can i denoted in matlab with binary number .
THANKS

 采纳的回答

Alessandro Masullo
Alessandro Masullo 2015-1-27

0 个投票

You can create integer random vectors with randi(), convert it to binary with de2bi(), and convert input binary to decimal with bi2de(). I didn't understand the last question.

1 个评论

but i have huge data ... i didn't need to convert from dec2bin .. did you have other solution ?
thank you

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Numeric Types 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by