How to integrate the indices of a vector of doubles?

2 views (last 30 days)
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

Accepted Answer

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

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!