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.
답변 (1개)
Fangjun Jiang
2017년 10월 30일
편집: Fangjun Jiang
2017년 10월 30일
0 개 추천
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
Muhammad Bilal
2017년 10월 30일
Fangjun Jiang
2017년 10월 30일
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)
Muhammad Bilal
2017년 10월 30일
Walter Roberson
2017년 10월 31일
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.
Muhammad Bilal
2017년 10월 31일
Walter Roberson
2017년 10월 31일
You need to fix the problems I showed in your other question.
카테고리
도움말 센터 및 File Exchange에서 Particle Swarm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!