How to calculate the area average of data
11 次查看(过去 30 天)
显示 更早的评论
Hi
The attached data point has three colums such as x (mm), y (mm) and vorticity (1/s). I have used griddata to visualise the spatial distribution of vorticity value. But I want to caluculate the area average value of the vorticity.
The physical dimesion of the field of view is 37 mm x 27 mm. If you need more information pls feel free to ask me.
Much appriciated your help. Thanks
Regards
Mohammad
回答(1 个)
Bruno Luong
2020-8-29
"The formula of the area average is = intregation (vorticity*dA)/A"
Then the result is simply
>> mean(vor2d,'all','omitnan')
ans =
8.4914
Your data before interpolation is also on grid, just different grid. So this can also give the result (no need to bother with interpolation)
>> mean(vor)
ans =
8.4891
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!