z = cumint3(x,y) approximates the integrals from x1 to x2 of a cubic polynomial through points (x0,y0), (x1,y1), (x2,y2), (x3,y3) for sliding four-point sets, and produces z as the cumulative values of these in a manner similar to cumtrapz. End intervals use cubics with two other points to the same side. Unequal intervals in x values are allowed. x, y, and z are column vectors of the same length which can be any amount not less than four.
Roger Stafford (2022). Cumulative Cubic Integration (https://www.mathworks.com/matlabcentral/fileexchange/19152-cumulative-cubic-integration), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!