The definition of variables
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Alessandro Masullo
2015-1-27
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!