%% Convert Cell Array to Character Array
% Convert a cell array of character vectors into a character array.

A = {'ABCD','efghijk','','LM'};
C = char(A)

%
% Because the character vectors from cell array A have different lengths, char pads C with blanks where needed. char pads the third row with seven blanks, because the third cell of A contains an empty character array.

whos C

% Copyright 2012 The MathWorks, Inc.