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!