You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). LatinSquare(n,interleave) (https://au.mathworks.com/matlabcentral/fileexchange/65681-latinsquare-n-interleave), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.2 (1.58 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
