フィルターのクリア

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

84 ビュー (過去 30 日間)
I would like a function that returns the date when a file was last modified.

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
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>

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by