Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to write the codings to automatic calculate total of files saved in a folder according to the modified date?

1 vue (au cours des 30 derniers jours)
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'.

Réponses (1)

Luis Gomes Perini
Luis Gomes Perini le 14 Juil 2015
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
  2 commentaires
Melindalee
Melindalee le 14 Juil 2015
Hi,
Now i am having a folder to save all files generated everyday, and i want to write codings for automatic calculating the amount of files generated on a specific day and specific time range among all files in the folder,the day and time will be selected using 'pop-up menu' so does file = dir('name_of_file.spm') still work? i tried but i still don't know how to write the codings
Melindalee
Melindalee le 5 Août 2015
I'd found the solution, anyway thank you very much~ =D

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by