Q:

Create a cell array that stores phrases, such as: exclaimcell = {'Bravo', 'Fantastic job'}; Pick a random phrase to print

0

Create a cell array that stores phrases, such as:

exclaimcell = {'Bravo', 'Fantastic job'};

Pick a random phrase to print.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

ranindex = randi([1, length(exclaimcell)]);
 fprintf('%s\n', exclaimcell{ranindex})

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now