How can I merge two excel sheets into only one sheet in Matlab?

2 visualizaciones (últimos 30 días)
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;

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Data Export to MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by