optimixation by genetic algorithm using MATLAB

1 visualización (últimos 30 días)
Ola Belal
Ola Belal el 25 de Nov. de 2019
Comentada: Ola Belal el 25 de Nov. de 2019
I have typed this codes by I did not get any answer the error is shown in the attached screenshot

Respuesta aceptada

Stephan
Stephan el 25 de Nov. de 2019
Editada: Stephan el 25 de Nov. de 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)

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by