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