optimixation by genetic algorithm using MATLAB

I have typed this codes by I did not get any answer the error is shown in the attached screenshot

 채택된 답변

Stephan
Stephan 2019년 11월 25일
편집: Stephan 2019년 11월 25일

0 개 추천

Get rid of the square brackets - Matlab will interpret this as one input argument of a vectorized function. Therefore it throws the error.
result = myfitness(21,30,0.2)

추가 답변 (0개)

카테고리

태그

질문:

2019년 11월 25일

댓글:

2019년 11월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by