How to remove rows in a cell array?

6 views (last 30 days)
Hi all,
I have a cell array called "stations1". I want to remove any row for which column 9 is empty ([]). Can anyone one help me with that?

Accepted Answer

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 27 Jan 2023
Here is how you can do it:
[Rs, Cs] = find(cellfun(@isempty, stations1));

More Answers (0)


Find more on Data Types 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!