adding a browse button to a GUI

Discussion in 'Programmer's Corner' started by m75allen, Jun 29, 2007.

  1. m75allen

    Thread Starter Member

    Nov 20, 2006
    11
    0
    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????????
     
  2. jpitz31

    Active Member

    Oct 24, 2007
    37
    0
    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
     
  3. Dave

    Retired Moderator

    Nov 17, 2003
    6,960
    145
    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
     
Loading...