在Matlab中替代B = A(:)

时间:2012-12-05 12:10:21

标签: matlab vector matrix

  

可能重复:
  How do you concatenate the rows of a matrix into a vector in MATLAB?

如何将MxN矩阵转换为列,即不使用

B = A ( : )

1 个答案:

答案 0 :(得分:3)

What have you tried?

B = reshape(A, [], 1);