Filter löschen
Filter löschen

Which function returns the date when a file was last modified in MATLAB 7.7 (R2008b)?

84 Ansichten (letzte 30 Tage)

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Jun. 2009
The DIR command in MATLAB 7.7 (R2008b) allows you to determine the date and time a file was last modified.
The following code returns a struct 'file' which contains a date field for file 'filename.m'.
file = dir('filename.m')
file.date
For more information on the DIR function, execute 'doc dir' at the MATLAB Command Prompt or navigate to the following documentation link:
<http://www.mathworks.com/access/helpdesk/help/techdoc/ref/dir.html>

Weitere Antworten (0)

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by