필터 지우기
필터 지우기

Binning by solid angle

조회 수: 3 (최근 30일)
Roman Hochuli
Roman Hochuli 2013년 6월 13일
I have vectors distributed on the unit sphere that I would like to bin according to their Cartesian values (x,y,z) or their description in spherical coordinates (theta,phi). Ideally, the output would be the bin index for the given vector and I would like to be able to specify the total number of bins used.
I have thus far experimented using hista(thetas,phis,4*pi/angBin,S,'radians') with S=referenceSphere and angBin being the number of angular bins on the sphere.
However, the behaviour of the function is unexpected. Can anyone tell me how to use hista() properly or suggest an alternative method?
Thanks.

답변 (1개)

Walter Roberson
Walter Roberson 2013년 6월 13일
The documentation for hista does not show any syntax for calling with 5 parameters. The units parameter looks like it cannot be used with the reference shape. (I do not have the toolbox to examine the code to see if there would be a way to provide both.)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by