About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconLATSQ (Scripts) Publisher's description

M = LATSQ(N) creates a latin square of size N-by-N containing the numbers 1 to N

M = LATSQ(N) creates a latin square of size N-by-N containing the numbers 1 to N. N should be a positive integer. M is also known as the (backward shifted) circulant matrix of the vector 1:N.

[M, R] = LATSQ(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.
More information: http://en.wikipedia.org/wiki/Latin_square


[M,R] = latsq(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(N),1-2)" will return 1:N in each column-row.


Latest version: 1.4 (feb 2009)

System Requirements:

MATLAB 6.5 (R13)
Program Release Status: New Release
Program Install Support: Install and Uninstall

LATSQ (Scripts) Tags:

Click on a tag to find related softwares

Is LATSQ (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.