adding a browse button to a GUI

Thread Starter

m75allen

Joined Nov 20, 2006
11
Hi everyone. I have a GUI in matlab and i would like to add a edit box and a browse button to get files into my GUI. any idea how to go about it????????
 

jpitz31

Joined Oct 24, 2007
39
Hello,

Go to matlab help and search for GUI Applications. There is an example on how to write a list box directory reader that allows you to select a file for loading. Also search the matlab file exchange web site. There are several applications that allow to to select files to browse files.

Thanks

Joe
 

Dave

Joined Nov 17, 2003
6,969
The function is uigetfile, you then need to store the path and filename result in the GUI handles. There is also a function at Matlab file exchange called uipickfiles which allows the selection of multiple files.

Dave
 
Top