Problem with combining .mat files
1 次查看(过去 30 天)
显示 更早的评论
Hi, I want to combine two .mat files that have the same matrice variables. The problem is when I combine them they are combined horizontally and I wish for them to be combined vertically.
Ex :
A (file1)=`
(222
111
333)
A(file2)=
(111
222
333)
Combined =
(222 111
111 222
333 333)
3 个评论
Adam Danz
2019-6-21
To concatenate vertically,
datacell1 = load('file1.mat');
datacell2 = load('file2.mat');
combined2.uu = [datacell1.uu; datacell2.uu];
combined2.vv = [datacell1.vv; datacell2.v
% ^ semicolon
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Big Data Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!