Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to combine five different workspace containing two matrices into single workspace.
1 次查看(过去 30 天)
显示 更早的评论
I am having five different workspaces saved in .mat as one,two,three,four,five
where one contains A=4x10 and B=4x10
two contains A=3x10 and B=3x10
three contains A=6x10 and B=6x10
four contains A=8x10 and B=8x10
five contains A=9x10 and B=9x10
I want to combine all five .mat into single .mat by adding one below the other
so the final all.mat should contain A=30x10 and B=30x10 (which means i want to add 4+3+6+8+9 =30).
Could anyone please help me on this.
1 个评论
回答(1 个)
Sai Bhargav Avula
2020-3-10
Hi, One way to solve this is to load the mat files and concatenate the variables and save them into a mat file.
In the above link the code for the same is given
Hope this helps!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!