poster
2019-12-10, 16:49
使用MATLAB找出文件大小的最佳方法是什么?首先想到的是size(fread(fid)) 。
回答:
请参阅上述dir (http://www.mathworks.com/help/techdoc/ref/dir.html)函数。
请注意,dir函数仅对文件有效,而对目录不起作用。
>> s = dir('c:\try.c') s = name: 'try.c' date: '01-Feb-2008 10:45:43' bytes: 20 isdir: 0 datenum: 7.3344e+005
更多&回答... (https://stackoverflow.com/questions/849739)
回答:
请参阅上述dir (http://www.mathworks.com/help/techdoc/ref/dir.html)函数。
请注意,dir函数仅对文件有效,而对目录不起作用。
>> s = dir('c:\try.c') s = name: 'try.c' date: '01-Feb-2008 10:45:43' bytes: 20 isdir: 0 datenum: 7.3344e+005
更多&回答... (https://stackoverflow.com/questions/849739)