fillmissing doesn't fill NaN values

10 ビュー (過去 30 日間)
Senne Van Minnebruggen
Senne Van Minnebruggen 2020 年 5 月 12 日
I have a timetable 'Table' which contains some NaN values. I would like to solve these NaN's in the column 'Q' by using a linear interpolation.
Herefore I'm using the function fillmissing but when I run the script it doesn't fill the NaN values.
I'm getting no errors when I run the script but i can't seem to figure out what I'm doing wrong.
fillmissing(Table.Q,'linear')

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 5 月 12 日
It's working, you just are not capturing the result in a variable. If you have the variable "ans" in your Workspace, open it in the variable editor and see if it has done what you exepcted.
You can update your code to the following
Table.Q=fillmissing(Table.Q,'linear');
  1 件のコメント
Senne Van Minnebruggen
Senne Van Minnebruggen 2020 年 5 月 12 日
thanks!

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by