Reading matrix and making a plot



Dear Robert,

Thanks, it matters. But in case you know how to plot / draw the below
matrix data it would be great (a being indep. variable, b and c being its
mapped values).

with_stdout ("data.txt", for x:0 thru 10 do (
       a:x/1.0,
       b:x^2/1.0,
       c:x^3/1.0,
       print(a,b,c)));
   data: read_matrix("data.txt");

   When I read data into Maxima

   data: read_matrix("data.txt");

Best, Dan


2013/11/20 Robert Dodier <robert.dodier at gmail.com>

> On 2013-11-20, Dan Kregar <dan.kregar at gmail.com> wrote:
>
> > Thanks a lot. Imported xml tags are caused by wxMaxima (which is most
> > likely a bug beacuse of its ambition to enable LaTeX copy/paste of nice
> > formatted outputs).
>
> Dunno if it matters, but a different way to write stuff into a file is
> to use printf instead of print. Something like
>
>    S : openw ("/path/to/file.txt");
>    for i:1 thru n
>      do printf (S, "~s, ~s, ~s~%", i, 2*i, 3*i);
>    close (S);
>
> Here S is an output stream.
>
> best
>
> Robert Dodier
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>