Latin Square
이전 댓글 표시
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
Image Analyst
2011년 11월 20일
How are you superimposing the two matrices? Latin squares can be any size, though usually not too large. I'm not sure what you mean when you talk about pairs. In a 4 by 4 Latin Square for example, what is X, what is Y, and what is a "pair"?
Andrew
2011년 11월 20일
Walter Roberson
2011년 11월 20일
Those are both good examples of things that are *not* Latin Squares.
Andrew
2011년 11월 20일
Andrew
2011년 11월 20일
Andrew
2011년 11월 20일
Image Analyst
2011년 11월 20일
I don't even see how your "matrix" is even a matrix. To me it looks more like a 3 by 3 cell array where each cell in the cell array contains a 2 by 1 array of numbers.
Image Analyst
2011년 11월 20일
Did you check Wikipedia or the Internet for Latin Square discussions and explanations?
Andrew
2011년 11월 20일
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개)
카테고리
도움말 센터 및 File Exchange에서 Quadratic Programming and Cone Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!