Leonhard Möhring on Wed, 17 Jul 2002 21:04:06 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: eval(Str([1,2;3,4]))



On Wed, 17 Jul 2002, Michael Somos wrote:
>? eval(Str([1,2;3,4]))
>*** array index (34) out of allowed range [1]: [12][34]
>Is this the expected behavior? How can I change a matrix into a string and
>then convert it back? Shalom, Michael

Hi,
how about

? default(output,0)
output = 0 (raw)
? Str([1,2;3,4])
%1 = "[1, 2; 3, 4]"
? eval(%)
%2 = [1, 2; 3, 4]

That way you won't get prettymatrix output, if you don't
need it. ;)

take care,
Leo