Effacer les filtres
Effacer les filtres

How to save variable as binary file?

41 vues (au cours des 30 derniers jours)
Jhon Gray
Jhon Gray le 30 Sep 2020
Commenté : Ameer Hamza le 1 Oct 2020
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?

Réponse acceptée

Ameer Hamza
Ameer Hamza le 30 Sep 2020
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 commentaires
Jhon Gray
Jhon Gray le 30 Sep 2020
Thanks a lot
Ameer Hamza
Ameer Hamza le 1 Oct 2020
I am glad to be of help!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by