How to integrate the indices of a vector of doubles?

1 回表示 (過去 30 日間)
Leo Tu
Leo Tu 2021 年 8 月 2 日
回答済み: darova 2021 年 8 月 2 日
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

採用された回答

darova
darova 2021 年 8 月 2 日
Sure
t = linspace(0,1,12054);
S = trapz(t,AT);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by