Filter löschen
Filter löschen

Can I pull a file from any folder to process?

2 Ansichten (letzte 30 Tage)
Calabrese
Calabrese am 26 Aug. 2015
Beantwortet: Walter Roberson am 26 Aug. 2015
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 26 Aug. 2015
[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.

Weitere Antworten (0)

Kategorien

Mehr zu Search Path finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by