Message Boards Message Boards

0
|
4723 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How do you get Image[xx] to display from within a For loop?

Posted 9 years ago

Show[Image[xx]] doesn't help either. Image[xx] works fine outside the For loop.

POSTED BY: Douglas Youvan
2 Replies

Thank you, Frank, that worked! It seems to me that Plot and Image should have an implicit Print.

POSTED BY: Douglas Youvan

Put it inside Print. For example

For[i = 0, i < 3, i++, Print[Plot[x^i, {x, 0, 1}]]]

However, For loops are slow in Mathematica. Better to use Table

POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract