MATLAB Answers

Info

This question is closed.

how to combine five different workspace containing two matrices into single workspace.

1 view (last 30 days)
jaah navi
jaah navi on 10 Mar 2020
Closed: Stephen Cobeldick on 10 Mar 2020
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.

Answers (1)

Sai Bhargav Avula
Sai Bhargav Avula on 10 Mar 2020
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 Comments

Sign in to answer this question.

Tags