view scene_classification/create_folds/RandomString1.m @ 9:d09b21e43345

add code to create folds
author Dan Stowell <dan.stowell@elec.qmul.ac.uk>
date Thu, 10 Oct 2013 09:18:23 +0100
parents
children
line wrap: on
line source
function String = RandomString1(n)

% generates a random string of lower case letters of length n

LetterStore = char(97:122); % string containing all allowable letters (in this case lower case only)
String = LetterStore(ceil(length(LetterStore).*rand(1,n)));