deleting multiple rows in a matrix
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alessandro Camillo
am 10 Jan. 2023
Kommentiert: Voss
am 10 Jan. 2023
how can i completely remove the first 110 rows and the last 70 in a (500*1) matrix? for example is this correct? A(1:110, : ) = [ ] A (430:500, : ) = [ ] Is there a way to combine the two?
0 Kommentare
Akzeptierte Antwort
Voss
am 10 Jan. 2023
A([1:110 end-69:end],:) = [];
(Also, note that 430:500 is 71 elements, not 70.)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!