Error - not enough input arguments, error in qfunc

2 ビュー (過去 30 日間)
Jeremy
Jeremy 2022 年 11 月 7 日
編集済み: Walter Roberson 2022 年 11 月 8 日
Hi I'm trying to input an equation to calculate eb/no. the equation to use is:
P_b = 10^-6
ebNo=0.5*((qfunc^-1)*(P_b))^2
When I run this script I get the error:
Not enough input arguments.
Error in qfunc (line 17)
if (~isreal(x) || ischar(x))
Error in Comms_Principles (line 22)
ebNo=0.5*((qfunc^-1)*(P_b))^2;
I'd be grateful for any assistnace.

採用された回答

drummer
drummer 2022 年 11 月 7 日
well, you should input a variable for qfunc as you can see here.
You have no argument in your function, that's why you're getting such error.
Cheers.
  2 件のコメント
Jeremy
Jeremy 2022 年 11 月 7 日
Thanks for the steer, all sorted. Still a MATLAB beginner... clearly
drummer
drummer 2022 年 11 月 8 日
Nice! Could you kindly accept the answer? Cheers.

サインインしてコメントする。

その他の回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by