Date: Apr 21, 2012 2:30 AM
Author: Nasser Abbasi
Subject: Re: How can I get the GUI to browse for a specific file?
On 4/21/2012 1:09 AM, elise loo wrote:
> Hello Everyone;
>
> I have an m-file that runs perfectly but wish to put in into a GUI
> (using GUIDE) to make it more user-friendly.
>
> In my m-file, I manually insert the pathname for the directory in
> which the necessary jpeg images are to be found. How can I get the
> user to be able to select the file in which the GUI can use the JPEGs
> within the selected file? I think I need some kind of "browse the
> user's computer directory" function but am not sure how to achieve
> this? I think have to use uigetfile function in Matlab but I duno how
> to write out this function..
>
> Any help and advice would be greatly appreciated.
>
> Thank you so much.
Instruction for uigetfile are here
http://www.mathworks.com/help/techdoc/ref/uigetfile.html
"[FileName,PathName] = uigetfile('*.m','Select the MATLAB code file');"
--Nasser