Code covered by the BSD License  

Highlights from
latin cube

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 1.64 KB File ID: #28201

latin cube

by W. Owen Brimijoin

 

14 Jul 2010 (Updated 15 Jul 2010)

This function will compute a randomized example latin cube of size N.

| Watch this File

File Information
Description

Given a positive integer specifying size (N), this code will compute an example latin cube, a 3 dimensional extension of the latin square in which each orthogonal slice through the cube is itself a latin square.Note that the cube created is not an example of a /balanced/ latin cube, rather a randomized one.

Example:

>> M = latin_cube(3)

M(:,:,1) =

     3 1 2
     2 3 1
     1 2 3

M(:,:,2) =

     1 2 3
     3 1 2
     2 3 1

M(:,:,3) =

     2 3 1
     1 2 3
     3 1 2

----------------
With thanks to Jos (10584) for his excellent latsq.m.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
LATSQ

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
15 Jul 2010

Added H1 line and expanded help and description.

Tag Activity for this File
Tag Applied By Date/Time
latin cube W. Owen Brimijoin 14 Jul 2010 10:21:58
latin square W. Owen Brimijoin 14 Jul 2010 10:21:58
experimental design W. Owen Brimijoin 14 Jul 2010 10:21:59
pseudorandom sequence W. Owen Brimijoin 14 Jul 2010 10:21:59
statistics W. Owen Brimijoin 14 Jul 2010 10:21:59

Contact us at files@mathworks.com