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

답변 (1개)

Thorsten
Thorsten 2015년 10월 22일

0 개 추천

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

댓글 수: 1

zoubaida mejri
zoubaida mejri 2015년 10월 22일
i don't have main prg i'll use this code in simulink (intrepreted matlab fct)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2015년 10월 22일

댓글:

2015년 10월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by