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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -