Equivalent of Python scipy.inte​rpolate.Cu​bicSpline.​integrate in Matlab

14 次查看(过去 30 天)
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:
CubicSpline.integrate(a, b, extrapolate=None)[source]
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 个)

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by