Mercurial > hg > aasp-d-case-metrics
annotate scene_classification/create_folds/RandomString1.m @ 10:507300d2ed66 tip
merge
author | Dan Stowell <dan.stowell@elec.qmul.ac.uk> |
---|---|
date | Thu, 10 Oct 2013 09:18:47 +0100 |
parents | d09b21e43345 |
children |
rev | line source |
---|---|
dan@9 | 1 function String = RandomString1(n) |
dan@9 | 2 |
dan@9 | 3 % generates a random string of lower case letters of length n |
dan@9 | 4 |
dan@9 | 5 LetterStore = char(97:122); % string containing all allowable letters (in this case lower case only) |
dan@9 | 6 String = LetterStore(ceil(length(LetterStore).*rand(1,n))); |
dan@9 | 7 |