Why do I get the error message "Too Many Input/Output Arguments" when I try to execute a function?
이전 댓글 표시
Why do I get the following error messages:
Too many output arguments.
Too many input arguments.
Not enough input arguments.
채택된 답변
추가 답변 (1개)
Limabean
2017년 5월 5일
16 개 추천
I found an additional way to get the the error "too many input arguments"
I had a class defined in an @folder, with functions in their own files. The primary class definition contains a signature for the function. I had declared 2 arguments in the function, but the signature for the function in the main file still had just one argument.
Solution: make sure the arguments listed in the function signature in your class file matches the arguments in the function you defined in the separate file.
This same thing holds true for "too many output arguments" as well; make sure the function signature matches.
카테고리
도움말 센터 및 File Exchange에서 Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!