Saving integer as a bit
이전 댓글 표시
I have an array which contains only 0s and 1s. Each data pt is getting saved as an 8 bit integer. How do I save it as a bit to save my memory space?
답변 (2개)
Mohammad Reza Naderi
2020년 7월 29일
0 개 추천
fwrite(fileID,A,precision,skip) Use fwrite for this work. https://www.mathworks.com/help/matlab/ref/fwrite.html#d120e398961
댓글 수: 1
Mohammad Reza Naderi
2020년 7월 29일
If you want to save with specific precision use instead of precision ubitn
카테고리
도움말 센터 및 File Exchange에서 Whos에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!