23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

vp4c<br />

2bvp4c<br />

Purpose Solve two-point boundary value problems (BVPs) for ordinary differential<br />

equations<br />

Syntax sol = bvp4c(odefun,bcfun,solinit)<br />

sol = bvp4c(odefun,bcfun,solinit,options)<br />

sol = bvp4c(odefun,bcfun,solinit,options,p1,p2...)<br />

Arguments odefun A function that evaluates the differential equations<br />

have the form<br />

dydx = odefun(x,y)<br />

dydx = odefun(x,y,p1,p2,...)<br />

dydx = odefun(x,y,parameters)<br />

dydx = odefun(x,y,parameters,p1,p2,...)<br />

f( x, y)<br />

. It can<br />

2-174<br />

where x is a scalar corresponding to x , and y is a column vector<br />

corresponding to y . parameters is a vector of unknown<br />

parameters, and p1,p2,... are known parameters. The output<br />

dydx is a column vector.<br />

bcfun A function that computes the residual in the boundary conditions<br />

bc( y( a)<br />

, yb ( ) ) . It can have the form<br />

res = bcfun(ya,yb)<br />

res = bcfun(ya,yb,p1,p2,...)<br />

res = bcfun(ya,yb,parameters)<br />

res = bcfun(ya,yb,parameters,p1,p2,...)<br />

where ya and yb are column vectors corresponding to ya ( ) and<br />

yb ( ) . parameters is a vector of unknown parameters, and<br />

p1,p2,... are known parameters. The output res is a column<br />

vector.<br />

solinit A structure with fields:<br />

x Ordered nodes of the initial mesh. Boundary<br />

conditions are imposed at a = solinit.x(1) and<br />

b<br />

= solinit.x(end).<br />

y Initial guess for the solution such that<br />

solinit.y(:,i) is a guess for the solution at the<br />

node solinit.x(i).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!