Removing matrix from a for loop
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Joel Schelander
am 17 Mär. 2021
Beantwortet: Roy Kadesh
am 17 Mär. 2021
I have a vector and a cell array with 429 cells. I want to remove cell number 2, 10 and 11 from the CAR cell array. How can I do this?
Remove=[2, 10, 11];
CAR=CAR(without the cells 2,10 and 11)
0 Kommentare
Akzeptierte Antwort
Roy Kadesh
am 17 Mär. 2021
CAR=num2cell(1:429);
Remove=[2, 10, 11];
CAR=CAR(setdiff(1:end,Remove));
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!