<< sudoku_readsdk Read/Write sudoku_readsdmnb >>

Sudoku Toolbox >> Read/Write > sudoku_readsdm

sudoku_readsdm

Read a sudoku in a .sdm file.

Calling Sequence

X = sudoku_readsdm ( filename , k )

Parameters

filename:

a string representing a file

k:

the index of the sudoku in the collection

X:

a 9-by-9 matrix, with 0 for unknown entries

Description

Read a sudoku in a .sdm and return the matrix X associated, where 0 represent an unknown cell. Lines begining with # are considered as comments and are ignored.

Examples

X = sudoku_readsdm ( "sudoku/tests/unit_tests/mycollection.sdm" , 3 )

See also

Authors

Bibliography

http://www.sudocue.net/fileformats.php

<< sudoku_readsdk Read/Write sudoku_readsdmnb >>