This problem is looking for the number of vertices on the hexagonal grid inside the circle of radius r. The center of the hexagon is not counted as a point for this problem, and this is true for every hexagon inside the circle.
1344 Solvers
Matrix indexing with two vectors of indices
492 Solvers
Determine Whether an array is empty
650 Solvers
473 Solvers
78 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!