Delete rows or column with NaN for a cell array
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Farshid Daryabor
le 17 Fév 2020
Réponse apportée : Pruthvi G
le 12 Mar 2020
I really thanks in advance any help. How can I delete NaN's of column from the cell attached as example file here.
Thanks
0 commentaires
Réponse acceptée
Bhaskar R
le 17 Fév 2020
nan_loc = cellfun(@(x)any(isnan(x)), P_QC, 'UniformOutput', false);
for ii=1:length(P_QC)
P_QC{ii}(:,nan_loc{ii}) = [];
end
4 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Resizing and Reshaping Matrices 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!