以下の数値があります。
x = [1,2,3,4,5,y]
ここでyにあてはまる値を数値の傾向などで予測することはできますか?
この場合、誰もがy=6だと思うはずですが
x = [12,31,455,673,812,12,y]
この様に数値がまばらな状況もあります。
わかりずらい質問かもしれませんが、宜しくお願いします。

 採用された回答

madhan ravi
madhan ravi 2019 年 2 月 12 日

1 投票

x=[1:5 NaN];
fillmissing(x,'linear')
% likewise try it for your second example

3 件のコメント

madhan ravi
madhan ravi 2019 年 2 月 12 日
See https://www.mathworks.com/help/matlab/ref/fillmissing.html for lot of options and adapt the method which satisfies your needs.
qrqr
qrqr 2019 年 2 月 12 日
編集済み: qrqr 2019 年 2 月 12 日
Thanks !!
Bat I can't your answer code
Because my MATLAB version "2013b"
So I installed "2018b"
I'm Japanese peopre
Sorry for weird English
madhan ravi
madhan ravi 2019 年 2 月 12 日
No problem , glad that you upgraded , please don't be sorry ;-)

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange初等数学 についてさらに検索

製品

リリース

R2013b

質問済み:

2019 年 2 月 12 日

コメント済み:

2019 年 2 月 12 日

Community Treasure Hunt

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

Start Hunting!