How to integrate the indices of a vector of doubles?

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by