title: Histogram from Spherical Plots in Matlab
body: <p>I have a data in azimuth and elevation angles with radius 1, e.g., <code>point = [azimuth, elevation, radius]</code>. I would like to divide the sphere surface into 64 regions and get a histogram of the points. For example, in the image below, there are 12 points in the first bin (<code>0 deg &lt;= azimuth &lt; 45 deg</code>,<code>0 deg &lt;= elevation &lt; 45 deg</code>)  </p>
  
  <p><img src="https://i.stack.imgur.com/ns0LL.jpg" alt="enter image description here"></p>
  
  <p>I am thinking of using Switch/Case to group the points but that would definitely be very inefficient. Is there any better way? </p>
  
  <p>Edited: I would like to find a way to label the regions (any way will do) and get a histogram, e.g <code>myHist = [... 1 1 ... 10 3 ... ]</code>
  <img src="https://i.stack.imgur.com/91XU5.jpg" alt="enter image description here"></p>