How to find mean in theta-direction?

조회 수: 2 (최근 30일)
Patcharawat Charoen-amornkitt
Patcharawat Charoen-amornkitt 2022년 9월 19일
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