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)

 Respuesta aceptada

Roy Kadesh
Roy Kadesh el 17 de Mzo. de 2021
CAR=num2cell(1:429);
Remove=[2, 10, 11];
CAR=CAR(setdiff(1:end,Remove));

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Productos

Versión

R2019a

Preguntada:

el 17 de Mzo. de 2021

Respondida:

el 17 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by