Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

File browser from popup menu

0 views
Skip to first unread message

Walter

unread,
Feb 9, 2010, 4:40:26 PM2/9/10
to
Can a GUI popup menu be configured to create a file browser?

Walter Roberson

unread,
Feb 9, 2010, 5:13:55 PM2/9/10
to
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.

ade77

unread,
Feb 9, 2010, 8:49:05 PM2/9/10
to
"Walter " <walter....@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);

Walter

unread,
Feb 10, 2010, 2:21:06 PM2/10/10
to
"ade77 " <ade...@gmail.com> wrote in message <hkt3ah$g38$1...@fred.mathworks.com>...

Walter

unread,
Feb 10, 2010, 2:28:03 PM2/10/10
to
Thanks. I also found "uigetdir" to be useful.

Walter


"ade77 " <ade...@gmail.com> wrote in message <hkt3ah$g38$1...@fred.mathworks.com>...

0 new messages