How to find file last modification date?

48 次查看(过去 30 天)
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by