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)

1 件のコメント

Ola Belal
Ola Belal 2019 年 11 月 25 日
thank you very much
it works!

サインインしてコメントする。

その他の回答 (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