www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/FlipColumnVectorflipudExample.m

    %% Flip Column Vector  

%% 
% Create a column vector. 
A=(1:10)'  

%% 
% Use |flipud| to flip the elements of |A| in the vertical direction. 
B = flipud(A) 

%%
% The order of the elements in |B| is reversed compared to |A|.