Equivalent of Python scipy.interpolate.CubicSpline.integrate in Matlab
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!