I need some help with the programmatic creation of a matrix as well as storing and recalling values to it. I created a matrix with the following steps:
[[12. 2.] [0. 0. ]]
'MAT'
STO
This worked and created the matrix named "MAT". Then I tried to insert a row after the row [12. 2.] with the string "ABC" and the value 2004. I succeeded by entering the following in RUN-Mode:
MAT (resulting in recalling the matrix MAT to the stack)
['ABC' 2004]
2
ROW+
Now doing the same from within a UserRPL program with a slight modification always results in an error. The modification ist that the value 2004 should come from a local variable named n:
[[12. 2.] [0. 0. ]]
'MAT'
STO
MAT
['ABC' n]
2
ROW+
This results in a syntax error. All my attempts to create ['ABC' 2004] on the stack with 2004 coming from variable n failed. The users manual from the CD was no help at all (how I wish back the times when HP really could be proud of their user manuals like the one for the HP-67/97).
Later on in the program I need to recall individual values from the matrix as well as storing new values in already existing cells.
How can I acomplish these task ? Maybe there is a really good tutorial somewhere on the Internet ? Any hint will be very much appreciated - thank you very much in advance.