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!