Thread Subject: Read several data

Subject: Read several data

From: Arie Driga

Date: 18 Nov, 2009 19:35:14

Message: 1 of 3

Hi all!

I have several graphic files in tiff which are needed to be imported to matlab and to be read using imread.

An m-file has been provided for me, however I have to write down all the file's name into the function. Sometime it can be tiresome if the number of file reaches more than 10.

The naming of the files are the same except for small difference.

Is there any way to make it more convenience for me?

Thanks!

Subject: Read several data

From: jrenfree

Date: 18 Nov, 2009 19:45:21

Message: 2 of 3

On Nov 18, 11:35 am, "Arie Driga" <a_dr...@yahoo.com> wrote:
> Hi all!
>
> I have several graphic files in tiff which are needed to be imported to matlab and to be read using imread.
>
> An m-file has been provided for me, however I have to write down all the file's name into the function. Sometime it can be tiresome if the number of file reaches more than 10.
>
> The naming of the files are the same except for small difference.
>
> Is there any way to make it more convenience for me?
>
> Thanks!

You can either use a for loop or something along those lines to create
a cell array holding all the different filenames, or you could use the
uigetfile function with multiple selection turned on to select all the
files you want to process

Subject: Read several data

From: someone

Date: 18 Nov, 2009 19:54:06

Message: 3 of 3

"Arie Driga" <a_driga@yahoo.com> wrote in message <he1i9i$cik$1@fred.mathworks.com>...
> Hi all!
>
> I have several graphic files in tiff which are needed to be imported to matlab and to be read using imread.
>
> An m-file has been provided for me, however I have to write down all the file's name into the function. Sometime it can be tiresome if the number of file reaches more than 10.
>
> The naming of the files are the same except for small difference.
>
> Is there any way to make it more convenience for me?
>
> Thanks!

See the answer to Q4.12 of the MATLAB FAQ at:

http://matlabwiki.mathworks.com/MATLAB_FAQ

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com