3

The question is:

How can I change an element in a matrix in Maple?

Is it possible?

brugerfuglen
  • 31
  • 1
  • 2

1 Answers1

5

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.

acer
  • 6,671
  • 15
  • 15