matrix row extraction help
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
hi there, i have a very simple question. how do i extract certain rows from a matrix. for example say i have a matrix nxm and i want to extract every 7th row from that matrix. how do i do that? thanks in advance. SN
0 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 13 Mär. 2013
Bearbeitet: Andrei Bobrov
am 13 Mär. 2013
x = randi(150,40,10); % your matrix
out = x(7:7:end,:);
0 Kommentare
Weitere Antworten (0)
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!