问题是:
如何更改 Maple 矩阵中的元素?
可能吗?
Yes, it is certainly possible. (It's one of the primary properties of a Matrix, it is a mutable data structure. ie. its entries can be changed.)
If you have assigned a Matrix to the name A
, then you can change the entry in the 4th row and 5th column by using normal assignment:
A[4,5] := 17.34;
For more on manipulating Matrices, Vectors, and Arrays, see the rtable_indexing Help page
Note that Matrix
is different from matrix
, the latter of which is now deprecated.