How can I have an "input argument" error without input ?

조회 수: 1 (최근 30일)
Antoine Devingt
Antoine Devingt 2016년 5월 2일
답변: Antoine Devingt 2016년 5월 4일
I have an issue with an "input argument" error but my function doesn't take any input. Can someone help me about it ?
  댓글 수: 1
Stephen23
Stephen23 2016년 5월 2일
Please show us the complete error message, this means all of the red text (and not just the bits that look interesting to you).
Also show us exactly how you are *calling your function.

댓글을 달려면 로그인하십시오.

답변 (2개)

Dave Behera
Dave Behera 2016년 5월 3일
Can you show the function definition and the error? Are you sure you don't have multiple functions with the same name and that your function's name does not match a MATLAB built-in function?

Antoine Devingt
Antoine Devingt 2016년 5월 4일
I found the solution. I just needed to add this.@function into fmincon to don't get this error. Thanks for the help.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by