LatinSquare(n,inter​leave)

Version 1.0.0.2 (1.58 KB) by Xin Niu
create latin square for experiment design
89 Downloads
Updated 13 Sep 2020

View License

run LatinSquare(n) to create a n by n latin square. If you prefer a latin square without interleave order, run LatinSquare(n, 0).

for example:
CreateLatinSquare(5)

ans =

1 2 5 3 4
2 3 1 4 5
3 4 2 5 1
4 5 3 1 2
5 1 4 2 3

Cite As

Xin Niu (2024). LatinSquare(n,interleave) (https://www.mathworks.com/matlabcentral/fileexchange/65681-latinsquare-n-interleave), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.2

fix the wrong output of function in the description. function is not changed.

1.0.0.1

change description

1.0.0.0

change the name of the function