필터 지우기
필터 지우기

My fillmissing function doesnt do moving methods

조회 수: 4 (최근 30일)
Tiago Dias
Tiago Dias 2018년 3월 23일
댓글: Guillaume 2018년 3월 23일
Hi, so I got
A = [1 2 5;4 5 7;NaN -1 8;7 6 0]
and i wanted to make
A = fillmissing(A,'movmean',2)
but I got an error
Error using fillmissing/parseInputs (line 318)
Fill method must be 'constant', 'previous', 'next', 'nearest', 'linear', 'spline', or 'pchip'
And I got R2016b, and it works with previous, nearest, linear, etc

채택된 답변

Guillaume
Guillaume 2018년 3월 23일
As per the release notes the moving mean option was introduced in R2017a.
  댓글 수: 2
Tiago Dias
Tiago Dias 2018년 3월 23일
ok thanks, in the matlab page of fillmissing, since it said "Introduced in R2016b" I thought it was all introduced at that specific time. thanks, will download the version i need
Guillaume
Guillaume 2018년 3월 23일
Yes, it would be very helpful if the doc also told you when major changes to a function was introduced, not just when the function was introduced.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Birdman
Birdman 2018년 3월 23일
편집: Birdman 2018년 3월 23일
Go to your MATLAB root folder and search for fillmissing.m file. Then open it, go to line 350 and see if the cell array at that line contains movmean.
  댓글 수: 4
Steven Lord
Steven Lord 2018년 3월 23일
Even if you don't intend to modify the file, it's easy to accidentally modify the file when it's open in the Editor.
If you want to display a subset of the lines in a file, you could use dbtype to do so. The formatting isn't as nice in the Command Window output of dbtype as the formatting of the file in the Editor is, but the dbtype output is read-only.
Birdman
Birdman 2018년 3월 23일
Hmm, I get it. I did not mean to modify it of course, but when this kind of problem occurs, I find it useful to go and look at the m file to see whether the necessary line is included or not. Thanks for the suggestion.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Display and Presentation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by