how to integrate this function?
1 view (last 30 days)
Show older comments
t=linespace(0:0.02:2001)
t=(0:dt:T)
B data has 2002 points
How to solve this equation in matlab, .
0 Comments
Accepted Answer
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)
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!