%% Convert Multiple Arrays to Character Array
% Convert multiple arrays into a single character array. The input arrays need not have the same shape.

A1 = [65 66; 67 68];
A2 = 'abcd';
C = char(A1,A2)

%
% Because the input arrays do not have the same number of columns, char pads the rows from A1 with blanks.

whos C

% Copyright 2012 The MathWorks, Inc.