error: not enough input arguments

3 visualizaciones (últimos 30 días)
zoubaida mejri
zoubaida mejri el 22 de Oct. de 2015
Comentada: zoubaida mejri el 22 de Oct. de 2015
help , I'm new to MATLAB!! I am trying to run this code, however, i get error, that there is error in line 3: not enough input arguments :( function a = satur(u) if abs(u)> 0.001 a= sign(u); else a= u*1000; end end

Respuestas (1)

Thorsten
Thorsten el 22 de Oct. de 2015
You have to call the function with an argument, like
satur(23)
  1 comentario
zoubaida mejri
zoubaida mejri el 22 de Oct. de 2015
i don't have main prg i'll use this code in simulink (intrepreted matlab fct)

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by