Re: Use of names
- To: mathgroup at smc.vnet.net
- Subject: [mg99928] Re: [mg99894] Use of names
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 19 May 2009 06:47:42 -0400 (EDT)
- Reply-to: hanlonr at cox.net
{p1, p2} = Plot[#, {x, 0, 1}] & /@ {x, x^2};
Export["p1p.png", p1];
Export["p2p.png", p2];
(plts = Import /@ FileNames["*.png"]) // Column
Bob Hanlon
---- Alain Mazure <alain.mazure at oamp.fr> wrote:
=============
Hi
I would like to import files from directories (e.g .png files)
The names are not always the same but the extension is.
I could find them by the command:
FileNames["*.png"]
which gives their names, but how could I import all of them since the =
command :
Import["TEMPO_*.png"]
does not work in Mathematica
Thanks
Files examples:
{"TEMPO_ALL_histo.png", "TEMPO_histo_17.png"}
Alain Mazure
Laboratoire d'Astrophysique de Marseille
P=F4le de l'=C9toile Site de Ch=E2teau-Gombert
38, rue Fr=E9d=E9ric Joliot-Curie
13388 Marseille cedex 13, France
http://alain.mazure.free.fr/
Mails:
alain.mazure at oamp.fr
alain.mazure at free.fr
Phones:
Lab: 33(0)491055902
Mobile: 33(0)603556287
Fax: 33(0)491661855
SKYPE: MAZURE-ALAIN