Unrecognized function or variable 'knnimpute'
3 ビュー (過去 30 日間)
古いコメントを表示
I have the stats and ml toolboxes installed, as well as the bioinformatics toolbox as well. If I try to run the function on an incomplete matrix I get the error in the title.
data = [2 3 3; NaN 5 4; 4 2 NaN];
knnimpute(data)
How do I go about debugging this? I'm not familiear with matlab toolboxes, so I wasn't sure if they get automatically added to path or not.
OS is Arch running XFCE4, matlab release 2023b though that's probably not necessary information. Will update
2 件のコメント
採用された回答
Star Strider
2023 年 12 月 1 日
If you installed the Toolboxes using the installer, MATLAB should be able to access them.
Your posted code works here —
data = [2 3 3; NaN 5 4; 4 2 NaN];
knnimpute(data)
You may have a path problem.
Run these from a script or your Command Window:
restoredefaultpath
rehash toolboxcache
.
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!