答案 0 :(得分:1)
您可以使用reshape()
功能:
//M is your n^2 x 1 column vector, A is your nxn matrix that you want to recover
A = reshape(M, [n n])
如果你的n x n矩阵是3x3,那么:
A = reshape(M, [3 3])
了解更多信息:http://www.mathworks.com/help/matlab/ref/reshape.html