Azzera filtri
Azzera filtri

MAT-file size is changing a little when downloading files from SFTP-server to the computer

2 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Jan
Jan il 12 Mag 2018
Modificato: Jan il 12 Mag 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.

Più risposte (0)

Categorie

Scopri di più su Workspace Variables and MAT-Files in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by