I need to divide matrix to blocks have size (1*3) how can write (for loop) to get blocks as the following example

matrix = [1 4 3 5 7 1;4 2 1 5 4 7;8 0 1 4 5 6] I need first block = [1 4 3] second block = [5 7 1] third block = [4 2 1]

and so on

Skip to content
# MATLAB: Divide the matrix to blocks

###### Related Question

digital image processingimageimage processingmatrices

I need to divide matrix to blocks have size (1*3) how can write (for loop) to get blocks as the following example

matrix = [1 4 3 5 7 1;4 2 1 5 4 7;8 0 1 4 5 6] I need first block = [1 4 3] second block = [5 7 1] third block = [4 2 1]

and so on

- Taking a certain column from each cell with different size
- Hi i have 1×36 cell,each cell contains 7×7 double, i need to divide each 7×7 equally into 4 halves and find max value in each halves,likewise for all 36 cells
- Transposing cells
- Cumalative sum of each row of the matrix and the matrix array, separately
- Delete matrix in cell

## Best Answer