%% Reshape Vector into Matrix
% Reshape a 1-by-10 vector into a 5-by-2 matrix.

A = 1:10;
B = reshape(A,[5,2])

% Copyright 2012 The MathWorks, Inc.