How to find mean in theta-direction?

5 visualizaciones (últimos 30 días)
Patcharawat Charoen-amornkitt
Patcharawat Charoen-amornkitt el 19 de Sept. de 2022
Comentada: Patcharawat Charoen-amornkitt el 19 de Sept. de 2022
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

Respuesta aceptada

Matt J
Matt J el 19 de Sept. de 2022
Editada: Matt J el 19 de Sept. de 2022
[theta,rho]=cart2pol(x,y);
G=discretize(rho,___); %fill in the blank with desired binning specs
zMean=splitapply(@mean,z(:),G(:));

Más respuestas (0)

Categorías

Más información sobre Polar Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by