Not enough input arguments
2 ビュー (過去 30 日間)
古いコメントを表示
mtrain1 = size(Xtrain1,1);
nw = size(Xtrain1,2);
when i run the above code , i face the following error:
Not enough input arguments.
Error in movie_kernel (line 28)
mtrain1 = size(Xtrain1,1);
What is this error, and how to solve this error, thanks
3 件のコメント
jessupj
2022 年 5 月 24 日
huh? why is size executing movie_kernel? I don't see that happening in those lines of code unless Xtrain1 executes a script or something like that
採用された回答
Walter Roberson
2022 年 5 月 24 日
You have a function named movie_kernel that expects to be passed one or more parameters, including a parameter it refers to as Xtrain1. However when you invoked the function you did so without providing enough input parameters.
A common cause for these kinds of problems is trying to execute a function by pressing the green Run button. When you press the Run button, the current script or function is executed without any input parameters.
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!