optimixation by genetic algorithm using MATLAB

1 vue (au cours des 30 derniers jours)
Ola Belal
Ola Belal le 25 Nov 2019
Commenté : Ola Belal le 25 Nov 2019
I have typed this codes by I did not get any answer the error is shown in the attached screenshot

Réponse acceptée

Stephan
Stephan le 25 Nov 2019
Modifié(e) : Stephan le 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 commentaire
Ola Belal
Ola Belal le 25 Nov 2019
thank you very much
it works!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by