How to remove rows in a cell array?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Behrooz Daneshian
le 27 Jan 2023
Réponse apportée : Sulaymon Eshkabilov
le 27 Jan 2023
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?
0 commentaires
Réponse acceptée
Sulaymon Eshkabilov
le 27 Jan 2023
Here is how you can do it:
load('stations1.mat');
[Rs, Cs] = find(cellfun(@isempty, stations1));
stations1(Rs,:)=[];
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Types dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!