error: not enough input arguments

7 ビュー (過去 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 Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by