Removing matrix from a for loop
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Roy Kadesh
2021년 3월 17일
CAR=num2cell(1:429);
Remove=[2, 10, 11];
CAR=CAR(setdiff(1:end,Remove));
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!