How to delete/copy (store) rows of a struct?
이전 댓글 표시
Hello,
One simply question: How can i delete rows of a struct? For example 1*45 struct the last 13 rows? Or how can i copy/store somewhere else the last 13 rows?
Thank you so much.
채택된 답변
추가 답변 (1개)
Stijn Haenen
2020년 7월 27일
You can delete the last 13 rows with:
struc.data=[1:45]';
struc.data(end-12:end)=[];
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!