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!