Filter löschen
Filter löschen

how to name a file with date and hour

3 Ansichten (letzte 30 Tage)
jan
jan am 8 Jun. 2012
Hi i want to create a file in matlab which name is the date and the hour of the day thanks for help

Antworten (1)

Aurelien Queffurust
Aurelien Queffurust am 8 Jun. 2012
fid=fopen([ datestr(now,'dd_mm_yyyy_HH_MM_SS') '.txt'],'w')
will create a txt file as follows for 08-June-2012 14h11: 08_06_2012_14_11_12.txt

Kategorien

Mehr zu Dates and Time finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by