I'm getting Not enough input arguments
1 view (last 30 days)
Show older comments
function [val] = S_inf (V, theta)
k = 2;
val = 1./(1+exp(-(V-theta)./k));
end
x = S_inf(10, -44);
0 Comments
Answers (1)
madhan ravi
on 5 Nov 2020
Your last line should be before the function
1 Comment
madhan ravi
on 5 Nov 2020
Edited: madhan ravi
on 5 Nov 2020
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
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!