How to save variable as binary file?
41 ビュー (過去 30 日間)
古いコメントを表示
I have a variable dimension
double in workspace.This contains 4 individual physiological data in 4 rows. I want to save this variable with lowest possible size in the current folder. If I am not wrong the file format should be binary. How do I save this variable in current folder as a .bin file sothat later I can load it and work with it?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/369058/image.png)
0 件のコメント
採用された回答
Ameer Hamza
2020 年 9 月 30 日
Save in a .mat file(); you will get much better compression: https://www.mathworks.com/help/matlab/import_export/mat-file-versions.html. In the bin file, each double number will take a full 8 bytes.
5 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!