How do I split and assign a matrix sized 1880,2 into N smaller matrices (or a struct holding the matrices) where N matrices have 5 elements of dim1,dim2, the next five and so on (incremental looping)?

조회 수: 1 (최근 30일)
temp(1880,2)
split 'temp' into 376 equal sized matrices temp_n(5,2), where N = 1,2,3.....376
temp_1 = (1:5,1:5);
temp_2 = (6:10,6:10);
temp_3 = (11:15,11:15);
::::
temp_N = (end-5:end,end-5:end);
Is there a dynamic way to name the matrices of type 'temp_n'? Using sprintf?
Is there a loop or vectorised way to do this?

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 4월 2일

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by