How to integrate the indices of a vector of doubles?

1 Ansicht (letzte 30 Tage)
Leo Tu
Leo Tu am 2 Aug. 2021
Beantwortet: darova am 2 Aug. 2021
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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by