How to integrate the indices of a vector of doubles?

1 次查看(过去 30 天)
Here, AT is a 1x12054 double containing values >=0. Is it possible to perform the following integral in matlab?
integral of AT(t-x) from 0 to t with respect to x

采纳的回答

darova
darova 2021-8-2
Sure
t = linspace(0,1,12054);
S = trapz(t,AT);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by