Write a script that will keep prompting the user for a string then stores them in a cell array and prints to display all strings in this cell array:
Show older comments
string=input('PLEASE INPUT A STRING:','s');
string1={i}
I believe I would need a for loop and to use celldisp but I am having trouble figuring out how to do those.
Accepted Answer
More Answers (0)
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!