Find and replace value
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hamed Hedayatnia
le 22 Avr 2020
Réponse apportée : Ameer Hamza
le 22 Avr 2020
I am working with a time table and wanna replace values==0 or less than i.e:800 with the value of the day before. how can i do it?
3 commentaires
Réponse acceptée
Ameer Hamza
le 22 Avr 2020
Try this
load('data_sum_rad.mat');
data_sum_daily.Var1(data_sum_daily.Var1==0) = nan;
data_sum_daily.Var1 = fillmissing(data_sum_daily.Var1, 'previous');
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!