Latin Square

6 ビュー (過去 30 日間)
Andrew
Andrew 2011 年 11 月 20 日
If I was given two matrices X and Y of any size, what should my approach be to test that the superimposed X,Y matrix is a true Latin Square and that every pair in the resulting Matrix is a unique pair?
Any advice welcome.
  10 件のコメント
Andrew
Andrew 2011 年 11 月 20 日
Yes now I have done some research, I now understand Latin Square better. I should rephrase my question. I would like to input two n-by-n matrices, check if each is a Latin Square. After that, superimpose the matrices and check if that n-by-n cell array contains unique 2-by-1 arrays.
Image Analyst
Image Analyst 2011 年 11 月 20 日
What have you tried? Have you called unique() and seen if the length of the unique numbers is equal to the length of the rows (or columns)?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeQuadratic Programming and Cone Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by