Equivalent of Python scipy.interpolate.CubicSpline.integrate in Matlab
14 views (last 30 days)
Show older comments
Hi everyone.
I am new here! How are you guys doing!?
I am rewritting a Python code to Matlab for my personal use... and I find this function used on it:
cubicspline.integrate(a=np.sqrt(omb*ome), b=omdom[i])
The Python manual has this to say about it:
Compute a definite integral over a piecewise polynomial.
Parameters:
a : float
Lower integration bound
b : float
Upper integration bound
extrapolate : {bool, ‘periodic’, None}, optional
If bool, determines whether to extrapolate to out-of-bounds points based on first and last intervals, or to return NaNs. If ‘periodic’, periodic extrapolation is used. If None (default), use self.extrapolate.
Returns:
ig : array_like
Definite integral of the piecewise polynomial over [a, b]
Any similar funcion, or way around this in Matlab?
0 Comments
Answers (0)
See Also
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!