15.11.2014 Views

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

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.

5 Differential Equations<br />

solution values. Call deval at xc-eps(xc) and xc+eps(xc) to get the limit<br />

values at xc.<br />

The example plots the solution approximated at the mesh points selected by<br />

the solver:<br />

plot(sol.x,sol.y(1,:),sol.x,sol.y(2,:),'--')<br />

legend('v(x)','C(x)')<br />

title('A three-point BVP solved with BVP4C')<br />

xlabel(['\ λ = ',num2str( λ), ...<br />

', \ κ = ',num2str( κ),'.'])<br />

ylabel('v and C')<br />

5-88

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

Saved successfully!

Ooh no, something went wrong!