Generate checkerboard corner locations
Generated checkerboard dimensions, specified as a 2-element [height, width] vector. You express the dimensions of the checkerboard in number of squares.
Checkerboard square side length, specified as a scalar in world units. You express world units as a measurement, such as millimeters or inches.
Generated checkerboard corner coordinates, returned as an M-by-2 matrix of M number of [x y] coordinates. The coordinates represent the corners of the squares on the checkerboard. The point [0,0] corresponds to the lower-right corner of the top-left square of the board. The number of points, M, that the function returns are based on the number of squares on the checkerboard. This value is set with the boardSize parameter.
|M = (boardSize(1)-1) * (boardSize(2)-1)|