Question: Printing a matrix/vector

I have a loop that generates a vector:

for i to 5 do

eqn[i] := i;

end do:

 

I then want to print the vector so it looks like this:   eqn = [1, 2, 3, 4, 5]

eqn;    just prints the word eqn

eqn();   prints   (table([1 = 1, 2 = 2, 3 = 3, 4 = 4, 5 = 5]))()

 

Thanks,

Kate

Please Wait...