# LATSQ 1.0

OS : Windows / Linux / Mac OS / BSD / Solaris

Script Licensing : Freeware

Created : Sep 17, 2007

Downloads : 7

Thank you for voting...

## M = LATSQ(N) creates a latin square of size N-by-N ...

M = latsq by Josh(N) creates a latin square of size N-by-N containing the numbers 1 to N. N should be a positive integer.

[M, R] = LATSQ 1.0(N) also returns a randomized latin square in R.

A latin square of size N is a N-by-N matrix filled with N different numbers in such a way that each number occurs exactly once in each row and exactly once in each column. They have applications in the design of experiments.

% M is unrandomized

% 1 2 3 4

% 2 3 4 1

% 3 4 1 2

% 4 1 2 3

% R is randomized

% 2 3 1 4

% 3 4 2 1

% 4 1 3 2

% 1 2 4 3

Note that "sort(balLATSQ - 0MB(N), 1-2)" will return 1:N in each column-row.

See also MAGIC, GALLERY, and BALLATSQ 1.0 (FEX)

[M, R] = LATSQ 1.0(N) also returns a randomized latin square in R.

A latin square of size N is a N-by-N matrix filled with N different numbers in such a way that each number occurs exactly once in each row and exactly once in each column. They have applications in the design of experiments.

**Example:**

[M, R] = LATSQ [latsq1.0.exe](4) % ->% M is unrandomized

% 1 2 3 4

% 2 3 4 1

% 3 4 1 2

% 4 1 2 3

% R is randomized

% 2 3 1 4

% 3 4 2 1

% 4 1 3 2

% 1 2 4 3

Note that "sort(balLATSQ - 0MB(N), 1-2)" will return 1:N in each column-row.

See also MAGIC, GALLERY, and BALLATSQ 1.0 (FEX)

**• matlab Release: R13**

**Demands:****LATSQ 1.0 scripting tags:**latsq, latin, matlab, randomized, latsq probability, statistics probability, matlab latsq, square, latsqn.

**What is new in LATSQ 1.0 software script?**- Unable to find LATSQ 1.0 news.

**What is improvements are expecting?**Newly-made LATSQ 1.1 will be downloaded from here. You may download directly. Please write the reviews of the LATSQ. License limitations are unspecified.