FUNCTION REFERENCE

bvpxtend

Extend a boundary value solution to a longer interval.

Extend a boundary value solution to a longer interval.

Syntax

solinit = bvpxtend(sol, xnew)

Syntax

solinit = bvpxtend(sol, xnew, ynew)

Syntax

solinit = bvpxtend(sol, xnew, 'constant' | 'linear' | 'solution')

Adds the point xnew before or after the mesh with ynew, or with the end value

('constant', the default), a linear extrapolation using the end slope, or the last

interval's cubic extrapolated ('solution').

Example

sol = bvp4c(@(x,y) [y(2); -y(1)], @(a,b) [a(1); b(1)-1], bvpinit(linspace(0,pi/2,5), [0 0])); s = bvpxtend(sol, 2); s.x(end)   % 2

Differences from MATLAB: none known.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.