Question: writedata does not like Array

Hi everybody

> P := plot3d(2*x-3*y+4, x = 0 .. 2, y = 0 .. 2, grid = [5, 5]);

> lprint(P);

PLOT3D(GRID(0. .. 2., 0. .. 2., Array(1 .. 5, 1 .. 5, {(1, 1) = 4. , (1, 2) = 2.50000000000000000, (1, 3) = 1., (1, 4) = -.500000000000000000, (1, 5) = -2., (2, 1) = 5., (2, 2) = 3.50000000000000000, (2, 3) = 2., (2, 4) = .500000000000000000, (2, 5) = -1., (3, 1) = 6., (3, 2) = 4.50000000000000000, (3, 3) = 3., (3, 4) = 1.50000000000000000, (4, 1) = 7., (4, 2) = 5.50000000000000000, (4, 3) = 4., (4, 4) = 2.50000000000000000, (4, 5) = 1., (5, 1) = 8., (5, 2) = 6.50000000000000000, (5, 3) = 5., (5, 4) = 3.50000000000000000, (5, 5) = 2.}, datatype = float[8], storage = rectangular, order = C_order)), AXESLABELS(x, y, ""))
> Q := op(indets(P, Array));

            [4.  2.50000000000000000  1.  -0.500000000000000000  -2.]
            [                                                       ]
            [5.  3.50000000000000000  2.   0.500000000000000000  -1.]
            [                                                       ]
       Q := [6.  4.50000000000000000  3.    1.50000000000000000   0.]
            [                                                       ]
            [7.  5.50000000000000000  4.    2.50000000000000000   1.]
            [                                                       ]
            [8.  6.50000000000000000  5.    3.50000000000000000   2.]
> writedata("D://Data//Data6//My_File7.txt", Q);

Error, (in writedata) use fprintf with %e, %f, or %g format for hfarrays


Any ideas how to write Q in My_File7.txt whitout going throught "Export -> tag delimited" etc?

Mario

 

Please Wait...