simpsonQuadrature

版本 1.2.0.0 (825 字节) 作者: Matthew Kelly
Computes the integral of a function using Simpson quadrature
408.0 次下载
更新时间 2015/12/13

查看许可证

% x = simpsonQuadrature(fun,tLow,tUpp,n)
%
% This function uses simpson quadrature over each of n uniform segments to
% approximate the integral of fun(t) on the interval tLow <= t <= tUpp
%
% INPUTS:
% fun = function handle
% f = fun(t)
% t = [1, nt] = time query points on [a,b]
% f = [nx, nt] = vector function at query points
% tLow = scalar lower bound on time
% tUpp = scalar upper bound on time
% n = number of segments to divide interval into
%
% OUTPUTS:
% x = [nx, 1] = integral along each dimension
%

引用格式

Matthew Kelly (2024). simpsonQuadrature (https://www.mathworks.com/matlabcentral/fileexchange/54457-simpsonquadrature), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.2.0.0

added reference to existing simpson quadrature routine on file exchange.

1.1.0.0

added photo

1.0.0.0