How to use bitn
조회 수: 5 (최근 30일)
이전 댓글 표시
pretty much the question, i want to write variables as bitn but i dont understand exactly how to
댓글 수: 0
답변 (2개)
John D'Errico
2022년 5월 14일
You cannot define a scalar variable as a binary one with an arbitrary number of bits. You can define integer variables, with a specific number of choices, but those integer classes are limited.
However, nothing stops you from defining a vector that would contain the bits as you wish, as separate elements of that vector.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Numeric Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!