extract submatrix from a large matrix using loop
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sophi gra
am 18 Jul. 2016
Kommentiert: Matt J
am 18 Jul. 2016
Dear friends, I have a matrix 1140 by 330. I have to split the matrix into 60 matrices with the size of 19*330 using a for loop. does any one know how to do that?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
Andrei Bobrov
am 18 Jul. 2016
A=rand(1140,330);
out = permute(reshape(A',size(A,2),60,[]),[2,1,3]);
0 Kommentare
Guillaume
am 18 Jul. 2016
m = rand(1140, 330); %demo matrix
splitm = mat2cell(m, ones(1, 60) * 19, 330)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!