error: not enough input arguments

조회 수: 5 (최근 30일)
zoubaida mejri
zoubaida mejri 2015년 10월 22일
댓글: zoubaida mejri 2015년 10월 22일
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일
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)

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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by