Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
Hassanean
Hassanean le 11 Août 2017
Commenté : Hassanean le 18 Août 2017
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;

Réponse acceptée

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

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by