Delete rows in intervall
이전 댓글 표시
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é

채택된 답변
추가 답변 (1개)
the cyclist
2019년 9월 17일
If your vector is a multiple of 7 in length, then this will work:
x = reshape(x,7,[]);
x = x(1:4,:);
x = x(:);
카테고리
도움말 센터 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!