Not enough input arguments

4 ビュー (過去 30 日間)
Artem N
Artem N 2020 年 2 月 14 日
コメント済み: Artem N 2020 年 2 月 14 日
function y = transistor(uds)
egs=5;
eds=12;
r=4e3;
u0=3;
beta=9e-4;
g=8e-5;
if egs<=u0
id=g*uds;
elseif egs>0 && uds<(egs-u0) %Error using transistor (line 12) Not enough input arguments.
id=beta*(2*(egs+u0)-uds+g*uds);
elseif egs>u0 && uds>=(egs-u0);
id=beta*(egs+u0)*(egs+u0)+g*uds;
end
y=eds-uds-r*id;

採用された回答

Walter Roberson
Walter Roberson 2020 年 2 月 14 日
You are trying to run the code by clicking on the green Run button. You need to go down to the command line and invoke the function passing in an appropriate parameter, such as
transistor(sqrt(3))
  1 件のコメント
Artem N
Artem N 2020 年 2 月 14 日
thank you very much!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

製品


リリース

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by