Code error "Not enough input arguments" Anyone help me, Thanks in Advance

I have PSO Algorithm code in Matlab with UCI breast cancer dataset feature selection with PSO and classification with Guassian kernal but having some error in code.I attached Code and error image is also written in PDF file also check this file for solve issue.I am student and new in matlab. please someone help me to solve this issue. I am very Thankful to for this act.

Answers (1)

The function expects three inputs, (s, h, data). You didn't provide any. That is the error.
It looks like you have some data in the workspace, so try
FeatureSelectionCost(s,h,data)

6 Comments

Thanks Fangjun Jiang please correct the code i not understand where the issue occur please check the file
The error is not from where you marked. The error is that you didn't provide inputs when running the function. Run
FeatureSelectionCost(s,h,data)
Fangjun Jiang Thanks for reply can u solve this issue to run code error free when run PSO.m error occur on featureselectioncost.m file please check this issue if you can solve it
The error is not in the file. You tried to run the function from the command line, and when you did that you did not pass in any arguments.
You also did not include a copy of your code, so people would not have been able to correct your code for you.
In one of your other Questions I showed some of the errors in your GaussianKernel code.
Walter Roberson, yes i can check detail review on this code i can send research paper please check this if you can solve this issue you can used any function to run this code or some trick to remove errors
You need to fix the problems I showed in your other question.

Sign in to comment.

Asked:

on 30 Oct 2017

Commented:

on 31 Oct 2017

Community Treasure Hunt

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

Start Hunting!