开发者

Get path to folder using uigetfile in Matlab

I know that you can create a file browser in Matlab using uigetfile. However, I w开发者_如何学JAVAant the user to be able to select a destination folder. I am currently using the following code:

[filename, pathname] = uigetfile;

Using this, the user has to select a file within the destination folder in order to actually be able to close the file browser. Is there a better way of doing this ? For example, allow the user to select a folder and this closes the file browser whilst returning just the path to the chosen folder. Your help is much appreciated.


UIGETDIR is what you're looking for.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜