www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/RotateColumnVectorExample.m
%% 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.