Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
User interface 在Matlab中使用uigetfile获取文件夹的路径_User Interface_Matlab - Fatal编程技术网

User interface 在Matlab中使用uigetfile获取文件夹的路径

User interface 在Matlab中使用uigetfile获取文件夹的路径,user-interface,matlab,User Interface,Matlab,我知道您可以使用uigetfile在Matlab中创建文件浏览器。但是,我希望用户能够选择目标文件夹。我目前正在使用以下代码: [filename, pathname] = uigetfile; 使用此选项,用户必须在目标文件夹中选择一个文件,才能真正关闭文件浏览器。有更好的方法吗?例如,允许用户选择文件夹,这将关闭文件浏览器,同时仅返回所选文件夹的路径。非常感谢您的帮助。正是您需要的

我知道您可以使用uigetfile在Matlab中创建文件浏览器。但是,我希望用户能够选择目标文件夹。我目前正在使用以下代码:

[filename, pathname] = uigetfile;
使用此选项,用户必须在目标文件夹中选择一个文件,才能真正关闭文件浏览器。有更好的方法吗?例如,允许用户选择文件夹,这将关闭文件浏览器,同时仅返回所选文件夹的路径。非常感谢您的帮助。

正是您需要的