Eliminate certain entries of cell array
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Mary Hemler
el 27 de Mayo de 2020
Respondida: KSSV
el 27 de Mayo de 2020
I have a 1x73 cell array, FR, and I would like to eliminate FR {8, 17, 31, 41, 43, 47, 49, 56, 60, 66, 73} and re-save as a 1x62 cell array. How can I do this?
2 comentarios
Respuesta aceptada
KSSV
el 27 de Mayo de 2020
If C is your cell array and FR has the indices of cells which are to be removed, use:
C(FR) = []
0 comentarios
Más respuestas (1)
Fangjun Jiang
el 27 de Mayo de 2020
Would it possible to make it array?
a=1:5;
b=1:3;
a=setdiff(a,b)
0 comentarios
Ver también
Categorías
Más información sobre Performance and Memory en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!