2

问题是:

如何更改 Maple 矩阵中的元素?

可能吗?

4

1 回答 1

3

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.

于 2011-09-08T20:12:38.507 回答