extract name from file name
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Walter Roberson
2011 年 11 月 30 日
curname = '200101010000-200101020000.dat';
newname = curname([1:8 end-3:end]);
movefile(curname, newname);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!