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
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:8| Question number:6.8
All Answers
total answers (1)
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