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
引用格式
Xin Niu (2024). LatinSquare(n,interleave) (https://www.mathworks.com/matlabcentral/fileexchange/65681-latinsquare-n-interleave), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2017b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- Signal Processing > Signal Processing Toolbox > Digital and Analog Filters > Digital Filter Analysis >
在 Help Center 和 MATLAB Answers 中查找有关 Digital Filter Analysis 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!