how to replaces NaN's with a corresponding vector?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
vedesh Mohit
le 2 Avr 2018
Réponse apportée : Walter Roberson
le 2 Avr 2018
I have two vectors x=[1 NaN 2 3 NaN 4 NaN NaN NaN 5 ]; y=[10 11 11 6 8 9 7 2 29 93 ]; I would like to know if there is a way to replace only the missing values (NaN's) in x with the corresponding value in the vector y?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB 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!