MATLAB: Cell array of answers from user input

arraycellfunctioninput

What function would be most suitable to return a cell array made of answers from user input?

Best Answer

My choice would be inputdlg or one of its friends. It returns a cell array of strings of user input.
Example:
userinput = inputdlg({'A = ', 'B = '}, 'Input');