필터 지우기
필터 지우기

How to save variable as binary file?

조회 수: 41 (최근 30일)
Jhon Gray
Jhon Gray 2020년 9월 30일
댓글: Ameer Hamza 2020년 10월 1일
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?

채택된 답변

Ameer Hamza
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
Jhon Gray
Jhon Gray 2020년 9월 30일
Thanks a lot
Ameer Hamza
Ameer Hamza 2020년 10월 1일
I am glad to be of help!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by