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!

 채택된 답변

Jan
Jan 2018년 8월 28일

0 개 추천

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.

댓글 수: 2

faran
faran 2018년 8월 28일
편집: Jan 2018년 8월 28일
Due to some bug for using uigetdir command in deploying application for Matlab R2017, "uigetdir_workaround" was being used before the update of matlab. Currently it is fixed in R2018a update 4. https://www.mathworks.com/support/bugreports/1729458?s_tid=srchtitle
faran
faran 2018년 8월 28일
Fileparts worked, thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Search Path에 대해 자세히 알아보기

질문:

2018년 8월 27일

편집:

Jan
2018년 8월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by