Reputation: 65
Assuming I have a cell array of matrices of one size: {m1,m2,m3,m4...}. Is it possible to concatenate them along the 3rd dimension without using cycles?
Upvotes: 1
Views: 38
Reputation: 36720
Use cat(3,m{:})
. The m{:}
creates a comma separated list which unpacks your cell to individual arguments.
Upvotes: 2