While using fmincon and ga am getting this error. how to resolve it?

1 件のコメント

Matt J
Matt J 2019 年 6 月 25 日
Please use text instead of screenshots to communicate code, where possible. It uses far less memory and makes it easier for people to copy/paste and experiment with your code.

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

 採用された回答

Stephan
Stephan 2019 年 6 月 25 日
編集済み: Stephan 2019 年 6 月 25 日

1 投票

Rename your script. NEVER name a script like an inbuilt function. This causes exactly the error you get.

4 件のコメント

Balaji L
Balaji L 2019 年 6 月 25 日
Getting same error after renaming the script.
Stephan
Stephan 2019 年 6 月 25 日
編集済み: Stephan 2019 年 6 月 25 日
how did you call it now? is there still an old copy of it with the wrong name? What is the result of
which fmincon
Balaji L
Balaji L 2019 年 6 月 25 日
It worked after i deleted fmincon.m in that path and call script by new name. Thanks
Stephan
Stephan 2019 年 6 月 25 日
please accept useful answers.

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

その他の回答 (0 件)

カテゴリ

質問済み:

2019 年 6 月 25 日

コメント済み:

2019 年 6 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by