Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Plotting a graph of Iterations' topicStudent Support Forum > General > Archives > "Plotting a graph of Iterations"

Help | Reply To Topic
Author Comment/Response
Hemant Parmar
01/26/10 08:32am

Hi there,

I am trying a produce a random walk for a distance n and my task is to
find how many times along the walk the difference between the two values
produced is 0. The walk gives a binary output and is linked to two
selective groups. I feel I have successfully completed this bit, but am
having difficulty plotting a graph to show this. The plot should be the x
value against the natural numbers, thus a visual description of how many
times the graph goes through the x-axis, to prove the Y value produced.

What function should I use to plot this graph?
Does the function need to be done within the "For" function?

If anyone has any ideas or clues as to how I can overcome this problem,
please be in touch.


Attachment: RandomWalk.nb, URL: ,
Help | Reply To Topic