| Author |
Comment/Response |
Buff
|
09/11/08 08:19am
Hi, I've just started using Mathematica, so my question might be easy to solve, but I'm having a problem with a For Loop and Importing graphics within this loop.
Basically I have an Image Sequence of bmp's of which I want to open. My current code is...
For[i = 0, i < 3, i++,
name = "n00";
name = name <> IntegerString[i];
name = name <> ".bmp";
Import[name, "Graphics"]
Print[name];
]
The only output I get from this is the output string I get from the Print Command.
i.e.
n000.bmp
n001.bmp
n002.bmp
With the actual Images not opening.
However if I remove the loop and hard code the value i, the output is correct, I get the displayed image and the output string.
Does anyone have any ideas of what I'm doing incorrectly?
URL: , |
|