Not enough input arguments.

4 ビュー (過去 30 日間)
danielle sisserman
danielle sisserman 2020 年 11 月 5 日
コメント済み: KSSV 2020 年 11 月 6 日
I am trying to create a mX1 matrix that is initialized with zeros.
this is what I'm doing:
predictions = zeros((size(Xtest,1)), 1);
m = the number or rows in the matrix Xtest.
I'm getting the following error:
Thank you in advance.

回答 (1 件)

KSSV
KSSV 2020 年 11 月 5 日
It seems you are striaghtaway running the function predictknn using run button. You should not run/ call a function like this.
You have to see what are the inputs to the function and define those inputs and then call the function. In this case, I see that your function predictknn needs a input Xtest. First define your input variable.
Xtest = define your input here ;
% no call the function
out = predictknn(Xtest) ;
  2 件のコメント
danielle sisserman
danielle sisserman 2020 年 11 月 5 日
I see. Thank you :)
KSSV
KSSV 2020 年 11 月 6 日
Thnak's is accepting/ voting the answer... :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by