n=0while n ~= 3 a = string(input('Firstname: ' , 's')); b = string(input('Lastname: ' , 's')); c = string(input('Number: ' , 's'));n = n+1A = [a b c] end
MATLAB: I want to create a program that will ask the user 3 times for there firstname, lastname and number, and then store all the results within a matrix or array. So far I can only get it for the last result. Thankyou
arrayconcanatematrixstrings
Related Question
- How to concatenate 2 cell arrays containing strings
- 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:
- Two variables need to be connected to one struct variable.
- How to store cell array inside a cell array
- Concatenating strings w/ character with while loops
Best Answer