If your column vector was "composed of all the columns of the original matrix", then use the reshape() command to turn it from a column vector back into the original 2D matrix.
matrix2D = reshape(columnVector, [rows columns]);
(The converse, how to get the column vector in the first place (what you may have done to get your vector) is accomplished like this columnVector = fullMatrix(:).)
5 件のコメント
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/35811-convert-matrix-in-single-column#comment_341556
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/35811-convert-matrix-in-single-column#comment_341556
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/35811-convert-matrix-in-single-column#comment_494193
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/35811-convert-matrix-in-single-column#comment_494193
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/35811-convert-matrix-in-single-column#comment_553892
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/35811-convert-matrix-in-single-column#comment_553892
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/35811-convert-matrix-in-single-column#comment_603823
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/35811-convert-matrix-in-single-column#comment_603823
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/35811-convert-matrix-in-single-column#comment_824243
このコメントへの直接リンク
https://jp.mathworks.com/matlabcentral/answers/35811-convert-matrix-in-single-column#comment_824243
サインインしてコメントする。