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

14 vues (au cours des 30 derniers jours)
Mariano Arnaiz
Mariano Arnaiz le 28 Juin 2021
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?

Réponses (0)

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by