Find and replace value

5 次查看(过去 30 天)
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 个评论
Hamed Hedayatnia
Hamed Hedayatnia 2020-4-22
values in data_sum_daily.Var1 should be considered.

请先登录,再进行评论。

采纳的回答

Ameer Hamza
Ameer Hamza 2020-4-22
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 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by