From: Donn Shull on 11 Apr 2010 13:24 "Judas Magnus" <ragnaork5435(a)yahoo.com> wrote in message <hpb4i1$sqq$1(a)fred.mathworks.com>... > hmmm is there a way to AFTER filling all the containers with "1" > to replace all of them with the word "cool" ? > > for example: > > cf = cellstr(char('Meat','Meatz','Meat1','Meat2','Meat3')) > c = cell(5,5) > r = randperm(numel(c)); > r = r(1:numel(cf)); > c(r) = cf(randperm(numel(cf))) > > %I want to replace all those of meat in the cf array to be replaced by "cool" c(find(strncmp('Meat', c, 4))) = {'Cool'}
|
Pages: 1 Prev: Why cross-validation does not work? Next: open a pdf document on a specific page |