maCoord2Ind: Convert grid and spot matrix coordinates to spot indices
Description
This functions converts grid and spot matrix coordinates (four
coordinates) to spot
indices, where spots on the array are numbered consecutively starting
from the top left grid and the top left spot within each grid.
Usage
maCoord2Ind(x, L)
Arguments
x
a matrix of spot four-coordinates, with rows corresponding to
spots and columns to grid row, grid column, spot row, and spot column coordinates.