<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
I have a new problem. I am trying to use the commands readdata -
listplot. The Problem is I have 100.000 coordinates in a file
"data.dat". So the TeX capacity exceeded. <br>
<br>
The folling code creats the first 1000 points of the iteration which I
want to plot.<br>
%<br>
\documentclass{article}<br>
\usepackage{fp}<br>
\usepackage{pstricks-add}<br>
\begin{document}<br>
\noindent<br>
%Startwert festlegen<br>
\FPadd{\Startwert}{0}{0}%<br>
\multido{\iA=1+1}{1000}{%<br>
\iA\qquad\qquad<br>
%Zufallszahl 0 oder 1 erzeugen<br>
\FPrandom\Zufallszahl\FPround{\Zufallszahl}{\Zufallszahl}{0}%<br>
%Zufallszahl mit 2 multiplizieren<br>
\FPmul{\ZErgebnis}{\Zufallszahl}{2}%<br>
%Zwischenwert mit 1 subtrahieren<br>
\FPsub{\Ergebnis}{\ZErgebnis}{1}%<br>
% Startwert um um Ergebniss weiter iterieren<br>
\FPadd{\Startwert}{\Ergebnis}{\Startwert}<br>
\FPround{\Startwert}{\Startwert}{0}\Startwert%<br>
\\}<br>
\end{document}<br>
<br>
Does somebody have an idea to plot this. <br>
<br>
In MatLab the code looks like this<br>
<br>
anzahl=100000;<br>
a1=zeros(size(1,anzahl));<br>
b1=randi([0,1],[1,anzahl]);<br>
a1=cumsum(a1+2.*b1-1);<br>
figure(1);<br>
plot(a1);<br>
<br>
<br>
In Maple it looks like this:<br>
<br>
restart; with(plots); Anzahl := 100000; x := 0; c :=
convert("ListPlot[Table[x=x+2*Random[Integer]-1,{n,0,Anzahl}],PlotJoined-&gt;True,
Axes-&gt;True]", FromMma); c<br>
<br>
<br>
In Mathematica it looks like this:<br>
<code style="font-size: 13px;"><span
 style="color: rgb(0, 109, 114); font-weight: bold;"><br>
Anzahl</span>=<span style="color: rgb(144, 0, 160);">100000</span>;<br>
x=<span style="color: rgb(144, 0, 160);">0</span>;<br>
<span style="color: rgb(0, 109, 114); font-weight: bold;">ListPlot</span><span
 style="color: rgb(68, 68, 68); font-weight: bold;">[</span><span
 style="color: rgb(0, 109, 114); font-weight: bold;">Table</span><span
 style="color: rgb(68, 68, 68); font-weight: bold;">[</span>x=x<span
 style="color: rgb(144, 0, 160);">+2</span>*<span
 style="color: rgb(0, 109, 114); font-weight: bold;">Random</span><span
 style="color: rgb(68, 68, 68); font-weight: bold;">[</span><span
 style="color: rgb(0, 109, 114); font-weight: bold;">Integer</span><span
 style="color: rgb(68, 68, 68); font-weight: bold;">]</span><span
 style="color: rgb(144, 0, 160);">-1</span>,<span
 style="color: rgb(68, 68, 68); font-weight: bold;">{</span>n,<span
 style="color: rgb(144, 0, 160);">0</span>,<span
 style="color: rgb(0, 109, 114); font-weight: bold;">Anzahl</span><span
 style="color: rgb(68, 68, 68); font-weight: bold;">}</span><span
 style="color: rgb(68, 68, 68); font-weight: bold;">]</span>,<span
 style="color: rgb(0, 109, 114); font-weight: bold;">PlotJoined</span>-&gt;<span
 style="color: rgb(0, 109, 114); font-weight: bold;">True</span>, <span
 style="color: rgb(0, 109, 114); font-weight: bold;">Axes</span>-&gt;<span
 style="color: rgb(0, 109, 114); font-weight: bold;">True</span><span
 style="color: rgb(68, 68, 68); font-weight: bold;">]</span></code><br>
<br>
<br>
regards<br>
Marco<br>
</body>
</html>