www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ConvertMultipleArraystoCharacterArrayExample.m
%% 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'; S = char(A1,A2) %% % Because the input arrays do not have the same number of columns, |char| % pads the rows from |A1| with blanks. whos S