% Problem 3 function test = Problem3() % PROBLEM3 Test randChars test = randChars(2,4); function result = randChars(rows,cols) % RANDCHARS fill array with random lowercase letters % Fill array $a$ with random lowercase letters: for r=1:rows for c=1:cols result(r,c)=char(randInt(double('a'),double('z'))); end end % more compressed answer: % result=char(floor(rand(rows,cols)*('z'-'a'+1))+floor('a'))