Q:

Write a script that will prompt the user for strings and read them in, store them in a cell array (in a loop), and then print them out

0

Write a script that will prompt the user for strings and read them in, store them in a cell array (in a loop), and then print them out.

All Answers

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

Ch8Ex6.m

% Prompt the user for strings and store in a cell array

for i = 1:4

 str = input('Enter a string: ','s');

 strcell{i} = str;

end

strcell

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