How can I use uigetfile to get the file path?
57 次查看(过去 30 天)
显示 更早的评论
Hello, I was wondering if I could use the function uigetfile to get the complete file path string.
0 个评论
采纳的回答
Image Analyst
2013-4-12
The documentation for uigetfile() is remiss in not showing any examples that use fullfile() to construct the full file name of the chosen file. Here is how you do it:
[baseName, folder] = uigetfile();
fullFileName = fullfile(folder, baseName)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!