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)

 채택된 답변

Roy Kadesh
Roy Kadesh 2021년 3월 17일

0 개 추천

CAR=num2cell(1:429);
Remove=[2, 10, 11];
CAR=CAR(setdiff(1:end,Remove));

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2021년 3월 17일

답변:

2021년 3월 17일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by