フィルターのクリア

how can I determine size of a text or csv file in matlab scripts?

6 ビュー (過去 30 日間)
minomi
minomi 2018 年 6 月 29 日
回答済み: Nivas Jayaseelan 2019 年 1 月 21 日
I am writing scripts which loop around a large number of ".csv" files and read them, etc. Some of the data files are very small and hence I would like to ignore them. Is there a way I can extract the data file sizes in Matlab scripts? For instance, if I have a file named exmaple.csv which is 2kB, how do I get matlab to output 2kB as the data file size?

採用された回答

jonas
jonas 2018 年 6 月 29 日
props = dir(filename);
props.bytes
outputs the size of a file

その他の回答 (1 件)

Nivas Jayaseelan
Nivas Jayaseelan 2019 年 1 月 21 日
How to print the file size of .pdf..??

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

タグ

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by