splitting a matlab matrix into several equal parts

后端 未结 4 1421
死守一世寂寞
死守一世寂寞 2021-01-12 09:22

I have a matrix of size 64500x17. It represents detected texton features that I have to use to find 5 centroids for kmeans.

What I need is:

4条回答
  •  温柔的废话
    2021-01-12 09:46

    To take the first submatrix use colon notation:

    A(1:12900,:)
    

    then

    A(12901:12900*2,:)
    

    and so on.

提交回复
热议问题