gap filling with liner interpolation

4 ビュー (過去 30 日間)
Binu
Binu 2019 年 10 月 15 日
コメント済み: Binu 2019 年 10 月 16 日
Hi,
I have a data file (attached) which I need to fill gaps (here in -9999) by liner interpolation. Could anyone please help me with this.
Many thanks
  2 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 10 月 15 日
B Column?
Matt J
Matt J 2019 年 10 月 15 日
Getting answers in the forum is generally more efficient if you attach attach relevant variables in a .mat file, rather than in .xlsx format.

サインインしてコメントする。

採用された回答

Matt J
Matt J 2019 年 10 月 15 日
編集済み: Matt J 2019 年 10 月 15 日
A=xlsread('data.xlsx');
I=A==-9999;
J=find(~I);
B=A;
B(I)=interp1(J,A(J),find(I));
  1 件のコメント
Binu
Binu 2019 年 10 月 16 日
Thanks Matt.It worked very well

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by