How do i delete an exact cell from a cell-matrix?
Mostrar comentarios más antiguos
Hi,
i have a 1x13 cell-txt-matrix which is read out of an excelsheet with
[num, txt, raw] = xlsread(___)
txt looks like that:
[test] [1.1.111] [2.2.2222] [empty cell] [3.3.3333]
the [ ] stands just for the cell. There are no brackets in it.
I am able to identify the coordinates from the cells i want to delete. The problem is, I cant delete these founded cells. I want to have this:
[1.1.111] [2.2.2222] [3.3.3333]
I tried to solve this problem with the approach:
txt{...} = []
The receiving:
[[]] [1.1.111] [2.2.2222] [[]] [3.3.3333]
I hope you understand my problem and have some satisfying advices.
Thanks a lot.
Respuesta aceptada
Más respuestas (1)
Noam Weissman
el 7 de Sept. de 2016
Editada: Noam Weissman
el 7 de Sept. de 2016
1 voto
txt = txt([2 3 5]);
% or
txt([1 4 ])=[];
1 comentario
Christoph Thale
el 7 de Sept. de 2016
Editada: Christoph Thale
el 7 de Sept. de 2016
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!