필터 지우기
필터 지우기

Removing matrix from a for loop

조회 수: 1 (최근 30일)
Joel Schelander
Joel Schelander 2021년 3월 17일
답변: Roy Kadesh 2021년 3월 17일
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일
CAR=num2cell(1:429);
Remove=[2, 10, 11];
CAR=CAR(setdiff(1:end,Remove));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by