开发者

Get path to folder using uigetfile in Matlab

开发者 https://www.devze.com 2023-03-02 02:28 出处:网络
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:

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

精彩评论

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