Can I pull a file from any folder to process?
2 次查看(过去 30 天)
显示 更早的评论
I am wondering if I can pull a file from any folder on my computer? I am using uigetfile currently but the file has to be in a specific directory
0 个评论
采纳的回答
Walter Roberson
2015-8-26
[filename, path] = uigetfile('Pick a file');
fullname = fullfile(path, filename);
TheImage = imread(fullname); %use the file as appropriate
uigetfile allows the user to navigate between directories and will return the name of the directory used.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!