Jump to content

MATLAB Programming/GUI/Get File or Directory

From Wikibooks, open books for an open world

uigetfile

[edit | edit source]

The uigetfile command is used to open a window which retrieves a specific file name.

[File,Path] = uigetfile('*.*','Select the file');

This is particular useful to give a user an alternate file from the default file.

[File,Path] = uigetfile('*.*','Select the file','c:\default_dir\default_file.ext');