Not enough input arguments error MATLAB

1 view (last 30 days)
Nikesh Venkat
Nikesh Venkat on 10 Mar 2019
Commented: Rena Berman on 13 May 2019
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.
Capture.PNG

Answers (5)

madhan ravi
madhan ravi on 10 Mar 2019

Nikesh Venkat
Nikesh Venkat on 10 Mar 2019
I am new to MATLAB. I initially need to run the code, so can you please explain in brief.
  1 Comment
Walter Roberson
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?

Sign in to comment.


Nikesh Venkat
Nikesh Venkat on 10 Mar 2019
I did not develope the code it was my professor’s she gave it me and asked to check for errors
  1 Comment
Walter Roberson
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 ?

Sign in to comment.


Nikesh Venkat
Nikesh Venkat on 10 Mar 2019
I have attached the code file there is seperate libsvm folder in it.
  17 Comments
Nikesh Venkat
Nikesh Venkat on 20 Apr 2019
There’s Readme file in the libsvm folder in code.
Walter Roberson
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) ?

Sign in to comment.


Nikesh Venkat
Nikesh Venkat on 10 Mar 2019
yes I did because it is the main code but my professor said I should run the HG_run_start_to_end but there are errors in every script
  5 Comments
Walter Roberson
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.
Nikesh Venkat
Nikesh Venkat on 11 Mar 2019
I will ask my professor clearly and wil let you know.

Sign in to comment.

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!