Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How could I copy a matrix to another matrix?

I have a matrix and I wanna copy this matrix to another matrix(let's call them M1 and M2),

but when I use: M2=M1 and modify M1, M2 changes too, which means M1 and M2 are actually one matrix.

So how should I copy the matrix, just the value of entries.