MATLAB Programming/GUI/Get File or Directory

Category:Book:MATLAB Programming#GUI/Get%20File%20or%20Directory%20

uigetfile

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');

Category:Book:MATLAB Programming