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