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

12 Ansichten (letzte 30 Tage)
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?

Akzeptierte Antwort

jonas
jonas am 29 Jun. 2018
props = dir(filename);
props.bytes
outputs the size of a file

Weitere Antworten (1)

Nivas Jayaseelan
Nivas Jayaseelan am 21 Jan. 2019
How to print the file size of .pdf..??

Kategorien

Mehr zu Data Import and Export finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by