I have included my code, as well as an image that shows the issue. I am trying to create an equally distant number of points across the surface of a sphere. The Fibonacci method I happened upon isn't perfect, but at least I could understand how to get it working at all in Matlab. A better method would be great, but I would like to get this working first.
However, as you can see, the code I am using doesn't create an equal number of points. For some reason, there is a line of holes at longitude 0 where there are no points. Why does this happen? I changed it a bit so it starts at 0 rather than at 1, but that didn't help much.