how to integrate this function?

2 Ansichten (letzte 30 Tage)
Hein zaw
Hein zaw am 13 Aug. 2019
Kommentiert: Hein zaw am 15 Aug. 2019
t=linespace(0:0.02:2001)
t=(0:dt:T)
B data has 2002 points
How to solve this equation in matlab, .

Akzeptierte Antwort

Torsten
Torsten am 13 Aug. 2019
T = ...;
dt = T/(numel(B)-1);
t = linspace(dt,T-dt,numel(B)-1);
dB = diff(B);
value = trapz(t,dB.^2)
  1 Kommentar
Hein zaw
Hein zaw am 15 Aug. 2019
Hello, sorry for late reply. It's work. thanks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by