필터 지우기
필터 지우기

How to extract sequential submatrices

조회 수: 2 (최근 30일)
Livia Servanzi
Livia Servanzi 2019년 2월 25일
답변: madhan ravi 2019년 2월 25일
I have a 71617x15 matrix, named A. I need to create 13 new variables, each of them corresponding to a 5509x15 submatrix of A. The first submatrix has to made of the first 5509 rows and all columns of A; the second submatrix has to be made of the second 5509 rows (from 5510 to 11018) and all columns of A and so on until the last row of A. I was able to reach my purpose with one comand for each submatrix. How can I do that with a single comand?

답변 (2개)

Jos (10584)
Jos (10584) 2019년 2월 25일
편집: Jos (10584) 2019년 2월 25일
Do not create 13 different variables, but store the result in 13 cells of a cell array, by applying MAT2CELL

madhan ravi
madhan ravi 2019년 2월 25일

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by