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

5 次查看(过去 30 天)
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;

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Export to MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by