Thread Subject: uigetfile - filter for no extension files?

Subject: uigetfile - filter for no extension files?

From: Naor Movshovitz

Date: 6 Apr, 2009 00:04:02

Message: 1 of 6

Quick question:
Can I use uigetfile with a filter to look for "clean" files, i.e. files with no dot something extension?
Thanks,
-Naor

Subject: uigetfile - filter for no extension files?

From: Image Analyst

Date: 6 Apr, 2009 03:32:59

Message: 2 of 6

"Naor Movshovitz" <nmovshov@gmail.com> wrote in message <grbgth$3ep$1@fred.mathworks.com>...
> Quick question:
> Can I use uigetfile with a filter to look for "clean" files, i.e. files with no dot something extension?
> Thanks,
> -Naor
------------------------------------------------
I would think that if you had *.* as the filter, it would show everything, even files that had no extension. Did you give that a quick try?

Subject: uigetfile - filter for no extension files?

From: Naor Movshovitz

Date: 6 Apr, 2009 03:49:01

Message: 3 of 6

That's true, but I don't want to show everything, I want to show *only* files that have no extension.

"Image Analyst" <imageanalyst@mailinator.com> wrote in message <grbt5b$d2n$1@fred.mathworks.com>...
> "Naor Movshovitz" <nmovshov@gmail.com> wrote in message <grbgth$3ep$1@fred.mathworks.com>...
> > Quick question:
> > Can I use uigetfile with a filter to look for "clean" files, i.e. files with no dot something extension?
> > Thanks,
> > -Naor
> ------------------------------------------------
> I would think that if you had *.* as the filter, it would show everything, even files that had no extension. Did you give that a quick try?

Subject: uigetfile - filter for no extension files?

From: ImageAnalyst

Date: 6 Apr, 2009 17:37:17

Message: 4 of 6

On Apr 5, 11:49=A0pm, "Naor Movshovitz" <nmovs...@gmail.com> wrote:
> That's true, but I don't want to show everything, I want to show *only* f=
iles that have no extension.
----------------------------------------------------------
Naor Movshovitz:
In that case, I think you'd need to get all files, use fileparts() to
identify those with null extension, and load only those files with no
extension into a listbox of a new UI. Then your user can pick the
file off of that listbox.
Good luck,
ImageAnalyst

Subject: uigetfile - filter for no extension files?

From: Ivan E. Cao-Berg

Date: 6 Apr, 2009 19:56:01

Message: 5 of 6

quick and dirty way
>> [filename, pathname] = uigetfile( '*.*', 'Select a file' );

"Naor Movshovitz" <nmovshov@gmail.com> wrote in message <grbgth$3ep$1@fred.mathworks.com>...
> Quick question:
> Can I use uigetfile with a filter to look for "clean" files, i.e. files with no dot something extension?
> Thanks,
> -Naor

Subject: uigetfile - filter for no extension files?

From: Naor Movshovitz

Date: 8 Apr, 2009 18:19:01

Message: 6 of 6

OK, that should work. Thanks Image.
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <0fbe1bac-5436-44dc-9979-c5d33b20dd81@v15g2000yqn.googlegroups.com>...
> On Apr 5, 11:49=A0pm, "Naor Movshovitz" <nmovs...@gmail.com> wrote:
> > That's true, but I don't want to show everything, I want to show *only* f=
> iles that have no extension.
> ----------------------------------------------------------
> Naor Movshovitz:
> In that case, I think you'd need to get all files, use fileparts() to
> identify those with null extension, and load only those files with no
> extension into a listbox of a new UI. Then your user can pick the
> file off of that listbox.
> Good luck,
> ImageAnalyst

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
all files Ivan E. Cao-Berg 6 Apr, 2009 16:00:19
uigetfile Ivan E. Cao-Berg 6 Apr, 2009 16:00:19
function Ivan E. Cao-Berg 6 Apr, 2009 16:00:19
uigetfile Naor Movshovitz 5 Apr, 2009 20:05:03
rssFeed for this Thread

Contact us at files@mathworks.com