Can I pull a file from any folder to process?

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

 Respuesta aceptada

Walter Roberson
Walter Roberson el 26 de Ag. de 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.

Más respuestas (0)

Categorías

Más información sobre File Operations en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Ag. de 2015

Respondida:

el 26 de Ag. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by