how to naming files sequently?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Lilya
am 18 Aug. 2017
Kommentiert: Lilya
am 19 Aug. 2017
Hi all,
could anyone help me with this file naming (control loop)
TOTL_REDC_2017_07_ 02_0500
the bold part is fixed in all files, while the remaining part is different
02 corresponding to number of days (02, 03, 04, ..., 29, 30, 31)
0500 corresponding to number of hours (0500, 0600, 0700, ..., 2200, 2300, 0000(second day)... etc))
thank you for your help.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 18 Aug. 2017
prefix = 'TOTL_REDC_2017_07';
ThisFileName = sprintf('%s_%02d_%04d', prefix, this_day_number, this_hour_number)
Siehe auch
Kategorien
Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!