from
Chess with "Greedy Edi"
by Wolfgang Garn
Play chess against "Greedy Edi".
|
| matrix2xy |
matrix2xy
matrix2xy matrix position to chess xy position
Contents
Syntaxxy_pos = matrix2xy(m_pos) Description
A position is given in matrix notation and the chess xy position is required.
Inputs:
- m_pos ... position in matrix notation (i.e. [2 4] row two, column four)
Outputs:
- xy_pos ... position in chess xy notation ([2 4]-> [4 7])
Example
Transform a position from matrix notation into chess xy position xy_pos = matrix2xy([2 4])
xy_pos =
4 7
See also
matrix2chess, xy2matrix
Signature
|
|
Contact us at files@mathworks.com