"Not enough input arguments error"
조회 수: 1 (최근 30일)
이전 댓글 표시
When I try to run the below code, it says Not enough input arguments for the line 2: qpsk=qpsk'. I would appreciated your help greatly!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160491/image.jpeg)
댓글 수: 0
답변 (2개)
Star Strider
2017년 2월 8일
You have a function in your code or a function file called ‘qpsk’.
Probably the easiest way to find it is to run this line in your script or your Command Window:
which qpsk -all
That should tell you what you need to know about it.
댓글 수: 0
Adam
2017년 2월 8일
Surely this is obvious from the error. It tells you exactly what the problem is. You are calling your function with no argument. What do you expect to happen on line 2 when the code tries to do something with qpsk which you haven't give it?
Don't just hit the green button to run a function, use your common sense and realise you need to pass in the argument on the command line.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 QPSK에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!