Error - not enough input arguments, error in qfunc

5 visualizaciones (últimos 30 días)
Jeremy
Jeremy el 7 de Nov. de 2022
Editada: Walter Roberson el 8 de Nov. de 2022
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.

Respuesta aceptada

drummer
drummer el 7 de Nov. de 2022
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 comentarios
Jeremy
Jeremy el 7 de Nov. de 2022
Thanks for the steer, all sorted. Still a MATLAB beginner... clearly
drummer
drummer el 8 de Nov. de 2022
Nice! Could you kindly accept the answer? Cheers.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by