Thread Subject: File browser from popup menu

Subject: File browser from popup menu

From: Walter

Date: 9 Feb, 2010 21:40:26

Message: 1 of 5

Can a GUI popup menu be configured to create a file browser?

Subject: File browser from popup menu

From: Walter Roberson

Date: 9 Feb, 2010 22:13:55

Message: 2 of 5

Walter wrote:
> Can a GUI popup menu be configured to create a file browser?

I don't see why not. You could use one element of Userdata to keep track of
the current path, and another element of Userdata to keep track of which of
the entries are directories.

Note: you may wish to examine some of Yair's old postings; if I recall
correctly, he has the incantations to bring up the Java file browser.

Subject: File browser from popup menu

From: ade77

Date: 10 Feb, 2010 01:49:05

Message: 3 of 5

"Walter " <walter.goedecke@navy.mil> wrote in message <hkskoa$73i$1@fred.mathworks.com>...
> Can a GUI popup menu be configured to create a file browser?

one of many ways

[F,PathName,FilterIndex] = uigetfile({'*.*','All Files(*.*)'}, 'Select your File ');
 b = strcat(PathName,F);
 Input = importdata(b);

Subject: File browser from popup menu

From: Walter

Date: 10 Feb, 2010 19:21:06

Message: 4 of 5

"ade77 " <ade100a@gmail.com> wrote in message <hkt3ah$g38$1@fred.mathworks.com>...
> "Walter " <walter.goedecke@navy.mil> wrote in message <hkskoa$73i$1@fred.mathworks.com>...
> > Can a GUI popup menu be configured to create a file browser?
>
> one of many ways
>
> [F,PathName,FilterIndex] = uigetfile({'*.*','All Files(*.*)'}, 'Select your File ');
> b = strcat(PathName,F);
> Input = importdata(b);

Subject: File browser from popup menu

From: Walter

Date: 10 Feb, 2010 19:28:03

Message: 5 of 5

Thanks. I also found "uigetdir" to be useful.

Walter


"ade77 " <ade100a@gmail.com> wrote in message <hkt3ah$g38$1@fred.mathworks.com>...
> "Walter " <walter.goedecke@navy.mil> wrote in message <hkskoa$73i$1@fred.mathworks.com>...
> > Can a GUI popup menu be configured to create a file browser?
>
> one of many ways
>
> [F,PathName,FilterIndex] = uigetfile({'*.*','All Files(*.*)'}, 'Select your File ');
> b = strcat(PathName,F);
> Input = importdata(b);

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
gui Walter 9 Feb, 2010 16:44:12
popup menu Walter 9 Feb, 2010 16:44:12
file browser Walter 9 Feb, 2010 16:44:12
rssFeed for this Thread

Contact us at files@mathworks.com