how to replace missing values from a double inside a cell array?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Farshid Daryabor
le 5 Fév 2020
Commenté : BN
le 5 Fév 2020
I really thanks in advance anybody can tell me how can I replace THE missing values (100000) in the below cell array with NaN.
A = {[1,2,3,100000,4,5,100000],[6,100000,7,100000]};
0 commentaires
Réponse acceptée
JESUS DAVID ARIZA ROYETH
le 5 Fév 2020
newA=cellfun(@(x) x.*(x~=100000)./(x~=100000),A,'Uni',false)
0 commentaires
Voir également
Catégories
En savoir plus sur Characters and Strings 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!