matlab - Dividing a matrix into sub matrices with same number of rows but different number of columns -


if, example, have 5000x30 matrix , want obtain 10 sub matrices having dimensions of 5000x3, how code in matlab. have read several post on issue,this 1 here example, none of them keep number of rows in submatrices same main matrix.

as handling large matrices, prefer code faster, using matlab's inbuilt functions such mat2cell or other vectorized method, not loops.

as per @beaker comment, using reshape(a, 5000, 3, 10) solved problem.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -