MATLAB Answers

how to integrate this function?

2 views (last 30 days)
Hein zaw
Hein zaw on 13 Aug 2019
Commented: Hein zaw on 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, .

  0 Comments

Sign in to comment.

Accepted Answer

Torsten
Torsten on 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 Comment

Hein zaw
Hein zaw on 15 Aug 2019
Hello, sorry for late reply. It's work. thanks

Sign in to comment.

More Answers (0)

Sign in to answer this question.