How to find file last modification date?

42 visualizaciones (últimos 30 días)
Giorgi
Giorgi el 9 de Jun. de 2015
Comentada: Giorgi el 9 de Jun. de 2015
Heloo all I have some mat files that contains some numbers. and I have variable x that contains the one of this mat file name. now I want to figure out the last modification date of this mat file through x variable input. I tried to do this in such a way but failed.
file=dir('x{1,1}.mat')
file.date
Any idea would be a great job for me.
Thanks in edvance

Respuesta aceptada

Walter Roberson
Walter Roberson el 9 de Jun. de 2015
file=dir([x{1,1} '.mat'])
file.date

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by