How to find file last modification date?

71 views (last 30 days)
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.
Any idea would be a great job for me.
Thanks in edvance

Accepted Answer

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

More Answers (0)


Find more on Dates and Time in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!