I'm getting Not enough input arguments
显示 更早的评论
function [val] = S_inf (V, theta)
k = 2;
val = 1./(1+exp(-(V-theta)./k));
end
x = S_inf(10, -44);
回答(1 个)
madhan ravi
2020-11-5
0 个投票
Your last line should be before the function
1 个评论
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
类别
在 帮助中心 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!