MATLAB Answers

optimixation by genetic algorithm using MATLAB

1 view (last 30 days)
Ola Belal
Ola Belal on 25 Nov 2019
Commented: Ola Belal on 25 Nov 2019
I have typed this codes by I did not get any answer the error is shown in the attached screenshot

  0 Comments

Sign in to comment.

Accepted Answer

Stephan
Stephan on 25 Nov 2019
Edited: Stephan on 25 Nov 2019
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)

  1 Comment

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags