フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how can I run a program using a dataset with missing values?

1 回表示 (過去 30 日間)
Doriana
Doriana 2014 年 8 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello all, I have a problem with my code. I get incorrect results when in dataset are some 'inevitable' missing value. How can I do? I don't want to remove them. Do you have any idea? Thank you, Doriana
  8 件のコメント
Doriana
Doriana 2014 年 8 月 6 日
I can't filter out the NaNs. I have to estimate the missing values. I can use Intepolation?
Michael Haderlein
Michael Haderlein 2014 年 8 月 6 日
This question must be answered by you. You seem to make some statistics and I'm not sure if interpolation makes a lot of sense in this context. If you think it does make sense, you can use the following lines (1D only):
function y = interp1_nan(x,y)
y(isnan(y))=interp1(x(~isnan(y)),y(~isnan(y)),x(isnan(y)),'linear','extrap');

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by