Create a set of boxes graphically as in a Su-Do-Ku puzzle

Hi Consider a Su-Do-Ku puzzle. I have difficulty figuring out how to draw the boxes in it. Also I would like to know how to fill in numbers in every box. Thanks in advance!

回答 (2 件)

Paulo Silva
Paulo Silva 2011 年 7 月 28 日

0 投票

FEX and search for sudoku, there are lots of examples for solvers and generators there.
Walter Roberson
Walter Roberson 2011 年 7 月 28 日

0 投票

hold on
for K = 0:9
LW = 1;
if K == 3 || K == 6; LW = 2; end
plot(K * ones(1,10), 0:9, 'Marker', 'none', 'LineWidth', LW);
plot(0:9, K * ones(1,10), 'Marker', 'none', 'LineWidth', LW);
end

2 件のコメント

Jugesh
Jugesh 2011 年 7 月 28 日
thanx...as to how I'll be filling in the numbers?
Walter Roberson
Walter Roberson 2011 年 7 月 28 日
text()

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSudoku についてさらに検索

質問済み:

2011 年 7 月 28 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by