"Not enough input arguments error"

1 回表示 (過去 30 日間)
Sanat Varasada
Sanat Varasada 2017 年 2 月 8 日
回答済み: Adam 2017 年 2 月 8 日
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!

回答 (2 件)

Star Strider
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.

Adam
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.

カテゴリ

Help Center および File ExchangeQPSK についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by