error: not enough input arguments

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

Réponses (1)

Thorsten
Thorsten le 22 Oct 2015

0 votes

You have to call the function with an argument, like
satur(23)

1 commentaire

zoubaida mejri
zoubaida mejri le 22 Oct 2015
i don't have main prg i'll use this code in simulink (intrepreted matlab fct)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by