Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'A Real Challenge (String)' topicStudent Support Forum > General > Archives > "A Real Challenge (String)"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
04/18/13 12:37pm

Unfortunately we can't tell from your post what all the file names you want to use will be or what order they will be in.

Can you use any of these methods?

In[1]:= Do[Import[
"C:\\Users\\...\\Pictures\\...\\meteosat2012-10-04_" <>
ToString[i] <> "-00.gif"], {i, 19, 21}]

In[2]:= Map[
Import["C:\\Users\\...\\Pictures\\...\\meteosat2012-10-04_" <>
ToString[#] <> "-00.gif"] &, {19, 20, 21}]

In[3]:= Map[
Import["C:\\Users\\...\\Pictures\\...\\meteosat2012-10-04_" <> # <>
"-00.gif"] &, {"19", "20", "21"}]

If none of those will do what you need then describe how the program can know or get the file names in the correct order and something can be done to edit those into the Import for you.

URL: ,

Subject (listing for 'A Real Challenge (String)')
Author Date Posted
A Real Challenge (String) Matías 04/17/13 12:45pm
Re: A Real Challenge (String) Bill Simpson 04/18/13 12:37pm
Re: Re: A Real Challenge (String) Matias 04/22/13 05:40am
Re: Re: A Real Challenge (String) Matias 04/22/13 11:44am
Re: Re: Re: A Real Challenge (String) Bill Simpson 04/22/13 2:48pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic