Not enough input arguments
2 ビュー (過去 30 日間)
古いコメントを表示
I have started to use MATLAB, so I am not sure about the error. When I run the attached matlab script file, I get the following error.
>> predictClassRFWithScores
Error using predictClassRFWithScores (line 22)
Not enough input arguments.
Any insight about the error would of great help. Thank you
0 件のコメント
回答 (1 件)
Stephen23
2017 年 1 月 6 日
編集済み: Stephen23
2017 年 1 月 6 日
predictClassRFWithScores is a function, not a script. It requires three inputs. However when you call it you are not providing it with any inputs. It is just like if you call this
sin()
and then complained that you are not getting any output from the sine function. What do you expect MATLAB to do, invent some values to use?
Possibly you are clicking the green button in the ribbon. Don't. Call the function from the command line, providing it with its required input arguments. Very basic things like calling functions and defining variables (that you can use as arguments) are explained in the introductory tutorials:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!