Rank: 5692 based on 0 downloads (last 30 days) and 1 file submitted
photo

Jon Farrimond

E-mail

Personal Profile:
Professional Interests:
electroneurophysiology

 

Watch this Author's files

 

Files Posted by Jon
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Mar 2008 latins Produces a latin square of required dimensions Author: Jon Farrimond statistics, probability, latin square, row, columns, time stamp 0 2
  • 1.0
1.0 | 1 rating
Comments and Ratings on Jon's Files View all
Updated File Comment by Comments Rating
05 Mar 2008 latins Produces a latin square of required dimensions Author: Jon Farrimond D'Errico, John

Jos was kind in not providing a rating. He probably felt that since he had a code that does the same thing, it would be a conflict of interest.

This submission has poor documentation. Its poor code in general.

The author has an interesting coding style, that I might worry about. I'm intrigued by the lines of code that are just:

colflag + 1;

and

rowflag + 1;

Nothing is assigned. The author merely adds 1 to rowflag and colflag, then dumps the result into the bit bucket. Is this a bug? Who knows? But I might not trust this code.

There is no H1 line. So next year when you want to find this code, lookfor will not help you.

A kludge of an interface too. It writes out a csv file, of its own choice of name and placement on your file system. If you don't have write access in that directory, tough luck. Or perhaps it might choose to overwrite the last file you just created. Ridiculous? Yes. Why not just return the latin square as an argument? This makes far more sense than returning two parameters that can not be useful.

The code resets the rand state on you, in case that matters to anyone.

As for latin rectangles, I'm waiting for a code that produces a latin triangle.

05 Mar 2008 latins Produces a latin square of required dimensions Author: Jon Farrimond x@y.z, Jos

non square latin square ??

Why not simply output the result as a matrix and let the user store the matrix, if they want to? And what are rowout, colout doing?

Finally, take a look at my vectorized implementation of latin squares:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=12315&objectType=FILE

or balanced latin squares:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=9996&objectType=FILE

Top Tags Applied by Jon
columns, latin square, probability, row, statistics
Files Tagged by Jon
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Mar 2008 latins Produces a latin square of required dimensions Author: Jon Farrimond statistics, probability, latin square, row, columns, time stamp 0 2
  • 1.0
1.0 | 1 rating

Contact us at files@mathworks.com