How to delete/copy (store) rows of a struct?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Stijn Haenen
am 27 Jul. 2020
You can delete the last 13 rows with:
struc.data=[1:45]';
struc.data(end-12:end)=[];
Kategorien
Mehr zu Structures finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!