Find and replace value

5 ビュー (過去 30 日間)
Hamed Hedayatnia
Hamed Hedayatnia 2020 年 4 月 22 日
回答済み: Ameer Hamza 2020 年 4 月 22 日
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 日
yes, of course
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 Center および File ExchangeLogical についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by