How to get the folder name?
22 ビュー (過去 30 日間)
古いコメントを表示
I used "uigetdir_workaround" command to select a folder and in return I receive the path. Is there any command that can give me the name of the folder I selected? I know that I can use some command to find the last "\" and take the names after that as the name of the folder but I was wondering if there is any specific command to gives the name of the selected folder or not!
0 件のコメント
採用された回答
Jan
2018 年 8 月 28 日
As long a "uigetdir_workaround" is not known, how can we guess, which output you get? Why don't you use uigetdir? To split a path name into a folder and the file use fileparts.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Adding custom doc についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!