%% 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.
% Copyright 2012 The MathWorks, Inc.