BALLATSQ - Balanced Latin Square
M = BALLATSQ(N) creates a balanced latin square of size N containing the numbers 1 to N. N should be an even positive integer.
A latin square of size M is a MxM matrix filled with the M different numbers in such a way that each number occurs exactly once in each row and exactly once in each column. A balanced latin square has the further restriction that each sequence of two values in a row does not occur more than once in the whole matrix. They have applications in the design of experiments.
Cite As
Jos (10584) (2026). BALLATSQ (https://nl.mathworks.com/matlabcentral/fileexchange/9996-ballatsq), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Digital and Analog Filters > Digital Filter Analysis >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
