以下の数値があります。
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!