Delete rows in intervall
Ältere Kommentare anzeigen
Hi, I hava very long data table. There are rows in this table that I want to delete.
I have four rows, then I have three rows I want to delete, then 4 rows, then three rows I want to delete,
and so on ... .
For a better explanation see the pic. How can I achieve this?
Thanks for your help
Best regards René

Akzeptierte Antwort
Weitere Antworten (1)
the cyclist
am 17 Sep. 2019
If your vector is a multiple of 7 in length, then this will work:
x = reshape(x,7,[]);
x = x(1:4,:);
x = x(:);
Kategorien
Mehr zu Cell Arrays finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!