Split up a matrix into n peices

I have a 1x1440 matrix right now, but its actually a 1x(24*n) matrix and I have n = 60. I need to split this matrix up in to 24 matrcies of n length. This needs to be done in a manner where the first matrix is the first 60 values the second martix is the next 60 values etc... Thank you!!

Answers (1)

Torsten
Torsten on 13 Apr 2022
Edited: Torsten on 13 Apr 2022
A = reshape(A,60,24).'

Categories

Products

Release

R2021b

Asked:

on 13 Apr 2022

Commented:

on 13 Apr 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!