Code covered by the BSD License  

Highlights from
Chess with "Greedy Edi"

image thumbnail
from Chess with "Greedy Edi" by Wolfgang Garn
Play chess against "Greedy Edi".

matrix2chess

matrix2chess

matrix2chess matrix to chess notation

Contents

Syntax

n = 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

  • Copyright 2006 W.Garn

Contact us at files@mathworks.com