%% Rotate Column Vector
% Create a column vector of sequential elements.

A = (1:5)'

%
% Rotate A counterclockwise by 90 degrees using rot90.

B = rot90(A)

% The result, B, has the same elements as A but a different orientation.
% Copyright 2012 The MathWorks, Inc.