Numerical integration of product of two data sets

How do I calculate the yearly energy production with numerical integration? The equation can be seen in the image. Maybe with trapz?
T=24*365; % [hours] is the number of hours in a year
V_ci=4; % [m/s] V_wind_cut_in
V_co=20; % [m/s] V_wind_cut_out
V=0:1:20; % [m/s] wind speed
P_el= [ 0 0 0 0 0 519482.264098907 748054.460302427 1018185.23763386 1329874.59609320 1683122.53568046 2077929.05639563 2514294.15823871 2992217.84120971 2992000 2992000 2992000 2992000 2992000 2992000 2992000 2992000 ];
f = [ 0 % Weibull_distribution_10m
0.056538236
0.096305348
0.121065264
0.130912872
0.127858306
0.115316502
0.097215032
0.077176425
0.057982037
0.041369159
0.0281032
0.018213392
0.011278766
0.006682186
0.003791554
0.002062248
0.001076013
0.000538929
0.000259257
0.00011985 ];

Antworten (1)

Sean de Wolski
Sean de Wolski am 18 Mär. 2014
Bearbeitet: Sean de Wolski am 18 Mär. 2014
So:
T*trapz(V,P_el.*f.')
If P_el and f are both functions of V.
Note the transpose since f was the only vector you defined as a column.

Gefragt:

am 17 Mär. 2014

Bearbeitet:

am 18 Mär. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by