How to remove rows in a cell array?

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

Sulaymon Eshkabilov
Sulaymon Eshkabilov il 27 Gen 2023
Here is how you can do it:
load('stations1.mat');
[Rs, Cs] = find(cellfun(@isempty, stations1));
stations1(Rs,:)=[];

Più risposte (0)

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by