MAT-file size is changing a little when downloading files from SFTP-server to the computer
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I downloaded some large mat. files from a SFTP-server to my home computer through Filezilla. The filesize of the files I downloaded to my computer was a little smaller than the filesize in the SFTP-server, but not that much difference F.eks was the filesize in the SFTP-server 1223022kb while after downloaded it was 1194358kb. When I loaded the files into matlab, it looks like the workspace contains all the arrays with the right number of rows and columns, so I expect that the file contains all the data. But I still wonder why the filesize is a little different. Someone have a good answer?
0 commentaires
Réponse acceptée
Jan
le 12 Mai 2018
Modifié(e) : Jan
le 12 Mai 2018
a = 1223022
b = 1194358
a / b
>> 1.0240
This looks like the typical problem of defining "kB" by 1000 or 1024 Bytes. Unfortunately many programmers confuse "kB" with "KiB". For your case it means, that the file did not loose any byte during the transfer, but that the display of the file size used a sloppy name for the unit.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!