extract name from file name
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
dear all,
i have file which name 200101010000-200101020000.dat..but i need to rename new file using 8 first digit (like 20010101.dat)..how i can extract the name and rename my new file?
0 Commenti
Risposta accettata
Walter Roberson
il 30 Nov 2011
curname = '200101010000-200101020000.dat';
newname = curname([1:8 end-3:end]);
movefile(curname, newname);
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su MATLAB Report Generator in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!