I'm getting Not enough input arguments

조회 수: 7 (최근 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 CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by