www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/FlipCellArrayOfStringsflipudExample.m
%% Flip Cell Array of Characters %% % Create a 3-by-3 cell array of characters. A = {'a' 'b' 'c'; 'd' 'e' 'f'; 'g' 'h' 'i'} %% % Change the order of the rows in the vertical direction by using |flipud|. B = flipud(A) %% % The order of the first and third rows of |A| is switched in |B|, while % the second row remains unchanged.