optimixation by genetic algorithm using MATLAB

10 Ansichten (letzte 30 Tage)
Ola Belal
Ola Belal am 25 Nov. 2019
Kommentiert: Ola Belal am 25 Nov. 2019
I have typed this codes by I did not get any answer the error is shown in the attached screenshot

Akzeptierte Antwort

Stephan
Stephan am 25 Nov. 2019
Bearbeitet: Stephan am 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)

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by