for loop for binary values from 00000 to 11111
显示 更早的评论
i want to enable rows of a pixel by giving logic high to them , I want write a FOR loop so that first 000000 then 10000 then 01000 then 11000.......11111 are given as input plz guide me with this
note: MSB and LSB are interchanged
采纳的回答
更多回答(1 个)
Andrei Bobrov
2012-10-11
out = rem(floor((0:63)'*pow2(-5:0)),2)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!