How to split 128x128 array into 64 ( 2x128 ) ?
Show older comments
Hello
i have a 128x128 array which i need to split it into 64 array of size 2x128
How to do that ?
2 Comments
Stephen23
on 4 Dec 2021
The MATLAB approach, where A is your 128x128 array:
C = mat2cell(A, 2*ones(1,64), 128)
Muhammad Abdulrazek
on 4 Dec 2021
Accepted Answer
More Answers (1)
Download mat2tiles from
A=rand(128);
Acell=mat2tiles(A,[2,inf])
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!