MATLAB: Simple way to wrap quotes around input

input

How to wrap quotes ('…') around a user input string?

Best Answer

One way:
str = sprintf('''%s''', usersString)