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!