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!