xy2matrix chess xy position to matrix position
m_pos = xy2matrix( xy_pos )
A position is given in chess xy notation and the position is in matrix notation required.
Inputs:
Outputs:
Transform a position from xy chess notation into matrix notation
xy_pos = matrix2xy([4 7])
xy_pos =
7 5