How to integrate the indices of a vector of doubles?

1 vue (au cours des 30 derniers jours)
Leo Tu
Leo Tu le 2 Août 2021
Réponse apportée : darova le 2 Août 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

Réponse acceptée

darova
darova le 2 Août 2021
Sure
t = linspace(0,1,12054);
S = trapz(t,AT);

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by