Not enough input arguments error MATLAB
1 view (last 30 days)
Show older comments
When I am trying to run the source code am getting an error called not enough input arguments. What might be the error for this. I have also attached image of it.
Answers (5)
Nikesh Venkat
on 10 Mar 2019
1 Comment
Walter Roberson
on 10 Mar 2019
Why did you put those variables like shuffle and cv in to the function header when you wrote the function?
Nikesh Venkat
on 10 Mar 2019
1 Comment
Walter Roberson
on 10 Mar 2019
The code assigns the same values to idx_train and idx_test which is likely to be wrong.
The code needs documentation about its purpose and any assumptions about the input.
Is there a particular reason you are not using MATLAB's own svm instead of external SVM ?
Nikesh Venkat
on 10 Mar 2019
17 Comments
Walter Roberson
on 25 Apr 2019
The README in the libsvm folder HG_code/hg_code/libsvm just gives installation instructions for libsvm . It does not give me any information about whether ROISignals_0050960.mat is associated with class 2, and ROISignals_0051067.mat is associated with class 1. For example should we assume that all of the _0050xxx files are one class (48 members) and that all of the _0051xxx files are a different class (1160 members) ?
Nikesh Venkat
on 10 Mar 2019
5 Comments
Walter Roberson
on 10 Mar 2019
We need to know how you are invoking HG_run_start_to_end now. We need copies of the error messages.
In order to give you the best advice it would help if you could explain why you are using libsvm instead of MATLAB's svm routines.
See Also
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!