mix several .mat files into one
1 次查看(过去 30 天)
显示 更早的评论
Hello, I have 10 mat files a1 to a10 like (a1=[1 2 3], a2=[4 5 6], a3=[7 8 9]...a10=[28 29 30]), I like to just combine all in one mat file like this: total=[1 2 3 4 5 .....30]. can anybody help me please?
2 个评论
Adam
2017-3-10
Just read them all in, create 'total' and write the new mat file out. Obviously it would have been easier if you hadn't created so many independent numbered variables in the first place!
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!