Error: Not enough input parameters

조회 수: 1 (최근 30일)
Whitewater
Whitewater 2015년 5월 8일
댓글: Stephen23 2015년 5월 8일
When I compile the following function I receive an error message that indicates there are not enough input parameters. For background, I am putting together functions for a solving a 2nd order nonlinear ODE BVP using bvp4c and the code below is establishing the system of ODEs generated when I split up my 2nd order ODE. The x and y values are generated by bvcinit and thus y has two rows.
function rhs = rhs_bvp (x, y, mu_bulk, mu_x, F, ereo, z, c_bulk, Vt)
call_all
rhs = [y(2); 2*z*F*c_bulk/ereo/Vt*exp(mu_bulk-mu_x)*sinh(z*y(1))-y(2)/x];
end
I have been over and over all the parameters and I can't seem to find where I have gone wrong. Assistance please??
  댓글 수: 3
Whitewater
Whitewater 2015년 5월 8일
I just mean when I try to use the function. Currently it is used when I call a script that includes bvp4c as it is the odefun.
Stephen23
Stephen23 2015년 5월 8일
Although of course this is the start of many great arguments on the internet...

댓글을 달려면 로그인하십시오.

답변 (1개)

Thomas Koelen
Thomas Koelen 2015년 5월 8일
편집: Thomas Koelen 2015년 5월 8일
In your main function, before you call this function can you put this and post results?
(Or whatever you called your variables)
x
y
mu_bulk
mu_x
F
ereo
z
c_bulk
Vt
Just to make sure!
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 5월 8일
Please also show us the code for making the call.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Boundary Value Problems에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by