MATLAB: How to merge two excel sheets into only one sheet in Matlab

excel sheetsmerge

Hi all, If anyone could help me about procedures and code to merge two excel sheets into one sheet inside matlab? For example:I have matrices A & B Matrix A = 1 2 5 6 4; 2 5 9 1 5; 6 5 9 4 2; 8 5 9 3 4;
Matrix B = 3 5 6 5 8; 2 6 8 4 6; 8 2 9 4 6; 6 9 2 1 6;
I need to produce matrix C = 1 2 5 6 4; 2 5 9 1 5; 6 5 9 4 2; 8 5 9 3 4; 3 5 6 5 8; 2 6 8 4 6; 8 2 9 4 6; 6 9 2 1 6;

Best Answer

You can concatenate your matrices by doing
C = [A;B];
and write to excel by
xlswrite(file.xls,C)