Can I pull a file from any folder to process?

조회 수: 2 (최근 30일)
Calabrese
Calabrese 2015년 8월 26일
답변: Walter Roberson 2015년 8월 26일
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

채택된 답변

Walter Roberson
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개)

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by