My fillmissing function doesnt do moving methods
4 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
その他の回答 (1 件)
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
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
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 Center および File Exchange で Display and Presentation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!