I have got a better option since my matrix size is large and no. of matrices is also large.
If my matrices are- A, B,C and so on...
D= combvec(A,B,C, ...)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!