Use DO loop in Plot order at mathematica 8

  • #1
es.no
12
0
Can anyone help me to in this problem?
I want to use DO loop in Plot order at mathematica 8, how can I do this?
I want to change one variables and see the changes in other variables in the graph, and want to plot all of my graph in one Plot order. Like this.

I Uploaded my file too.
 

Attachments

  • mmmmm.png
    mmmmm.png
    1.6 KB · Views: 564

Answers and Replies

  • #2
Bill Simpson
1,071
31
This does not use a Do loop.

Look up Plot in the help system and see that

Plot[{f1,f2,f3} will plot f1 and f2 and f3 on the same graph.

Then realize you can make {f1,f2,f3} using Table[].

Plot[Table[Sqrt[r^2 - x^2], {r, 1, 4}], {x, 0, 4}, AspectRatio -> Automatic]

Or do this the hard and error prone way with a Do loop

r = 4;
plotlist = {};
Do[
AppendTo[plotlist, Plot[Sqrt[r^2 - x^2], {x, 0, 4}]];
r = r - 1
, {4}];
Show[plotlist, AspectRatio -> Automatic]
 
  • Like
Likes es.no

Suggested for: Use DO loop in Plot order at mathematica 8

  • Last Post
Replies
1
Views
18K
  • Last Post
Replies
5
Views
13K
Mathematica In mathematica 8
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
4
Views
2K
Mathematica Plot in mathematica
  • Last Post
Replies
2
Views
2K
Mathematica Mathematica plot
  • Last Post
Replies
1
Views
3K
Mathematica Mathematica Plot
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
1
Views
3K
Mathematica [Mathematica] Plot 3D
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
0
Views
1K
Top