a={‘test’,'Test’} %creat cell array
b=[1 2;3 4;5 6];
c=cat(1,a,num2cell(b)); %combine two different cellarray
xlswrite(‘test2.xls’,c) %write to excel file
a={‘test’,'Test’} %creat cell array
b=[1 2;3 4;5 6];
c=cat(1,a,num2cell(b)); %combine two different cellarray
xlswrite(‘test2.xls’,c) %write to excel file