How do i delete an exact cell from a cell-matrix?
Show older comments
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.
Accepted Answer
More Answers (1)
Noam Weissman
on 7 Sep 2016
Edited: Noam Weissman
on 7 Sep 2016
1 vote
txt = txt([2 3 5]);
% or
txt([1 4 ])=[];
1 Comment
Christoph Thale
on 7 Sep 2016
Edited: Christoph Thale
on 7 Sep 2016
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!