Suppose I have a matrix like this A = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24] (Length of a Matrix is always multiple of 8). I want to break it into sub matrices of length 8. I use reshape function but it does not work. Needs your help.

# MATLAB: Matrix into Sub matrix of length 8

homeworkMATLAB

###### Related Question

- How to do linear indexing in matlab
- Convert matrix and horizontally catenate
- Can anyone help me with making a 2D matrix into a 3D matrix
- How to create multiple matrix from a single matrix
- How to split an array by same length and make a matrix
- How to flip a general square matrix ( it could have even or odd number of rows/cols ) from it’s center in matlab
- Transform a vector by keeping the numbers by pairs
- Rearrange any matrix Randomly with a specific sequence

## Best Answer