フィルターのクリア

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 Center および File ExchangeMultidimensional Arrays についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by