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

2 Ansichten (letzte 30 Tage)
Hassanean
Hassanean am 11 Aug. 2017
Kommentiert: Hassanean am 18 Aug. 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;

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Data Export to MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by