Equivalent of Python scipy.interpolate.CubicSpline.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:
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!