I have a cell array C containing 380 matrices and want to put them in 3-dimensional matrix M
such that the 1st 20 matrices of C will be in M(:,:,1), the 2nd 20 matrices (from 21 to 40) in M(:,:,2) and so on.
Edit: I want to concatenate them columnwise.
Can I do this in a one loop in Matlab.
You don’t even need a loop for that: