Find and replace value
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hamed Hedayatnia
il 22 Apr 2020
Risposto: Ameer Hamza
il 22 Apr 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 Commenti
Risposta accettata
Ameer Hamza
il 22 Apr 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!