I'm getting Not enough input arguments

4 ビュー (過去 30 日間)
Gilbert Valentino
Gilbert Valentino 2020 年 11 月 5 日
編集済み: madhan ravi 2020 年 11 月 5 日
function [val] = S_inf (V, theta)
k = 2;
val = 1./(1+exp(-(V-theta)./k));
end
x = S_inf(10, -44);

回答 (1 件)

madhan ravi
madhan ravi 2020 年 11 月 5 日
Your last line should be before the function
  1 件のコメント
madhan ravi
madhan ravi 2020 年 11 月 5 日
編集済み: madhan ravi 2020 年 11 月 5 日
x = S_inf(10, -44);
function [val] = S_inf (V, theta) % saved in a separate file named S_inf.m if your using version prior to 2016b
k = 2;
val = 1./(1+exp(-(V-theta)./k));
end

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

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by