How do i delete an exact cell from a cell-matrix?
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
Noam Weissman
il 7 Set 2016
Modificato: Noam Weissman
il 7 Set 2016
1 voto
txt = txt([2 3 5]);
% or
txt([1 4 ])=[];
1 Commento
Christoph Thale
il 7 Set 2016
Modificato: Christoph Thale
il 7 Set 2016
Categorie
Scopri di più su Spreadsheets in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!