How to merge 2 tables wtih thw same rows and columns?
1 次查看(过去 30 天)
显示 更早的评论
Hello. I have a question.
How to merge 2 tables wtih thw same rows and columns? (I have 1000x1 tables, that I want to merge the rows of them. I mean I would like finally to have one 1000x1 table) ?
0 个评论
采纳的回答
Abhay Mohan
2020-12-7
Is this what you're looking for?
t1 = ones(1000,1); %Table 1 (a column vector)
t2 = 2*ones(1000,1); %Table 2 (a column vector)
t_merged = [t1,t2]; %Merged table (a 1000 x 2 matrix)
Or, do you want another merged table which is again 1000x1, with elements joined together? If so, then this answer might help you:
https://in.mathworks.com/matlabcentral/answers/355755-merge-two-columns-into-one
2 个评论
Abhay Mohan
2020-12-7
Just check the link I provided in my answer, the method is described in that answer. Again, the link is pasted here as well: https://in.mathworks.com/matlabcentral/answers/355755-merge-two-columns-into-one
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!