How to find mean in theta-direction?

5 次查看(过去 30 天)
I have data store in [x,y,z] format where matrices x [100x100] and y [100x100] store the coordinates and matrix z [100x100] is the value I would like to average. Basically, I would like to create a 1D distribution of z in r-direction. However, I am not sure how to perform averaging in the theta-direction. Any help would be greatly appreciated

采纳的回答

Matt J
Matt J 2022-9-19
编辑:Matt J 2022-9-19
[theta,rho]=cart2pol(x,y);
G=discretize(rho,___); %fill in the blank with desired binning specs
zMean=splitapply(@mean,z(:),G(:));

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Polar Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by