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.)
Binning by solid angle
6 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polar Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!