How I can Convert Decimal number into binary number then to matrix binary number ?
조회 수: 2 (최근 30일)
이전 댓글 표시
e,g I have 128125
i want convert to 01 1111 0100 0111 1000
then convert to 01
11
11
01
00
01
11
10
00
채택된 답변
John D'Errico
2021년 12월 21일
Easy peasey.
B = dec2bin(123125)
B = [repmat('0',rem(length(B),2)),B]
reshape(B,2,[])'
댓글 수: 2
Walter Roberson
2021년 12월 21일
B = dec2bin(123125)
B = [repmat('0',rem(length(B),2)),B]
reshape(B,2,[])' - '0'
추가 답변 (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!