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 CenterFile Exchange에서 Get 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