How to generate a total random 6 by 6 Latin Square?

1 回表示 (過去 30 日間)
Tao
Tao 2014 年 5 月 23 日
コメント済み: Ilya Gurin 2019 年 10 月 28 日
I have a question about 6 by 6 Latin Square, right now I have a Latin Square like this:
6 1 4 2 3 5
3 4 1 5 6 2
5 6 3 1 2 4
4 5 2 6 1 3
2 3 6 4 5 1
1 2 5 3 4 6
But I found in the fourth column and sixth column, 1 and 6 comes out in the the same sequence (6 is just behind 1). The same situation happens in the first column and fifth column, 5 and 4 comes out in the same sequence (4 is just behind 5). Is it possible to avoid this problem? Thank you very much!

回答 (1 件)

George Papazafeiropoulos
George Papazafeiropoulos 2014 年 5 月 23 日
  2 件のコメント
Tao
Tao 2014 年 5 月 23 日
Actually the square I put in the question is from this code. And I tried a lot of times to generate Latin Square from this code, the problem which I mentioned still happens. But still thank you for your reply :)
Ilya Gurin
Ilya Gurin 2019 年 10 月 28 日
Also, File Exchange has a very restrictive license.

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by