Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to write the codings to automatic calculate total of files saved in a folder according to the modified date?
1 次查看(过去 30 天)
显示 更早的评论
I am a new learner of Matlab. I have a lists of files saved in a folder with different modified date and time as everyday there will be new files being saved in the same folder, now i would like to calculate the total of files according to the modified date. How to write the codings to automatic calculate everyday according to modified date? the files are in '.spm'.
0 个评论
回答(1 个)
Luis Gomes Perini
2015-7-14
Hi,
the function you need is "dir", which returns a structure with name, date, size of the file:
>> file = dir('name_of_file.spm')
then you can access file.date and use it in your code.
Cheers
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!