optimixation by genetic algorithm using MATLAB

1 回表示 (過去 30 日間)
Ola Belal
Ola Belal 2019 年 11 月 25 日
コメント済み: Ola Belal 2019 年 11 月 25 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by