how delete .txt in file extension with uigetdir comand
6 ビュー (過去 30 日間)
古いコメントを表示
selpath = uigetdir('C:\rova\','Seleziona cartella da caricare')
filelist = dir(strcat(selpath,"\*.txt"));
file = {filelist.name};
file(1)
ans =
1×1 cell array
{'prova.txt'}
i want to catch only name
now i try it:
file1=string(file);
ewStr = erase(file1,".txt")
now i solve it
or is there a better method?
0 件のコメント
回答 (1 件)
Edoardo Mattia Piccio
2023 年 5 月 25 日
Hi Luca, I think you can find an answer to your question here:
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!