File Exchange

image thumbnail

bvp4c2

version 1.0 (228 KB) by

Faster version of the MATLAB function bvp4c.

0 Downloads

Updated

View License

The most time consuming part of BVP4C is the function colloc_Jac, especially when the number of equations is large. In bvp4c2 the inefficient sparse matrix operation in colloc_Jac is optimized according to the method intruduced in Loren's blog (http://blogs.mathworks.com/loren/2007/03/01/creating-sparse-finite-element-matrices-in-matlab/). When called without unknown parameters and FJacobian is not used, bvp4c2 is more than 10x faster than BVP4C for large BVP systems.

The mex file SPARSE2.MEXW32 is compiled from SuiteSparse(http://www.cise.ufl.edu/research/sparse/SuiteSparse/). It is about 2x faster than SPARSE. If you encounters problem with it, just comment it out in bvp4c2 and use the MATLAB function sparse.

Comments and Ratings (5)

mincong he

bvp4c里面解方程组用的是什么方法?

Qun HAN

Qun HAN (view profile)

You do not need this function after MATLAB R2014

Qun HAN

Qun HAN (view profile)

MATLAB R2012 and higher versions do not need this code, because the bvp4c.m distributed with the software has already implemented such optimizaion.

Qun HAN

Qun HAN (view profile)

USAGE:
Unzip to MATLABROOT\toolbox\matlab\funfun

MATLAB Release
MATLAB 7.8 (R2009a)
Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video