view 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
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)));