How to integrate the indices of a vector of doubles?

1 visualización (últimos 30 días)
Leo Tu
Leo Tu el 2 de Ag. de 2021
Respondida: darova el 2 de Ag. de 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

Respuesta aceptada

darova
darova el 2 de Ag. de 2021
Sure
t = linspace(0,1,12054);
S = trapz(t,AT);

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by