フィルターのクリア

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

2 ビュー (過去 30 日間)
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?

採用された回答

Jan
Jan 2018 年 5 月 12 日
編集済み: Jan 2018 年 5 月 12 日
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 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by