How can I delete a row from a cell aray, with empty cell as first column
Show older comments
I have a cell aray with 2 columns.
A={[7;8],6;[],19;[3;4;5;6],11;[],25;[4;5],58;[],63}
I want to delete all rows which contain empty cells.How can I do that?
Accepted Answer
More Answers (1)
Andrei Bobrov
on 25 Mar 2014
A(~any(cellfun(@isempty, A),2), :)
Categories
Find more on Elementary Math 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!