« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Random Processes
Random Walk on a Lattice
Visualize a symmetric random walk in 2D.
In[1]:=
X
SeedRandom[1234]; data2d = RandomFunction[RandomWalkProcess[0.5], {0, 10^3}, 2];
In[2]:=
X
Graphics[Line[Transpose@data2d["States"]], AspectRatio -> Automatic]
Out[2]=
Visualize a symmetric random walk in 3D.
In[3]:=
X
data3d = RandomFunction[RandomWalkProcess[0.5], {0, 10^3}, 3];
In[4]:=
X
Graphics3D[Line[Transpose@data3d["States"]], BoxRatios -> Automatic]
Out[4]=