How to find file last modification date?

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일

0 개 추천

file=dir([x{1,1} '.mat'])
file.date

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Calendar에 대해 자세히 알아보기

질문:

2015년 6월 9일

댓글:

2015년 6월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by