Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to Interactively Select a File within a Browser Window

Subject: How to Interactively Select a File within a Browser Window

From: henry wang

Date: 16 Aug, 2010 19:13:05

Message: 1 of 4

Hi,

Within a m file, how do you allow the user to select a file within a file browser? I know there's a way to do this in GUIDE but in a normal m file, is there a way to do this? I don't want to have to type in the file name but rather let the user choose from a directory.

Thanks,
Henry

Subject: How to Interactively Select a File within a Browser Window

From: Walter Roberson

Date: 16 Aug, 2010 19:22:06

Message: 2 of 4

henry wang wrote:

> Within a m file, how do you allow the user to select a file within a
> file browser?

uigetfile()

Subject: How to Interactively Select a File within a Browser Window

From: Sean

Date: 16 Aug, 2010 19:26:20

Message: 3 of 4

"henry wang" <henrywang41@hotmail.com> wrote in message <i4c2k1$lct$1@fred.mathworks.com>...
> Hi,
>
> Within a m file, how do you allow the user to select a file within a file browser? I know there's a way to do this in GUIDE but in a normal m file, is there a way to do this? I don't want to have to type in the file name but rather let the user choose from a directory.
>
> Thanks,
> Henry

help uigetfile

Subject: How to Interactively Select a File within a Browser Window

From: henry wang

Date: 16 Aug, 2010 20:13:04

Message: 4 of 4

Thanks!

"Sean " <sean.dewolski@nospamplease.umit.maine.edu> wrote in message <i4c3cs$c10$1@fred.mathworks.com>...
> "henry wang" <henrywang41@hotmail.com> wrote in message <i4c2k1$lct$1@fred.mathworks.com>...
> > Hi,
> >
> > Within a m file, how do you allow the user to select a file within a file browser? I know there's a way to do this in GUIDE but in a normal m file, is there a way to do this? I don't want to have to type in the file name but rather let the user choose from a directory.
> >
> > Thanks,
> > Henry
>
> help uigetfile

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us