MATLAB: Write a getString() function that prompts the user for a string and returns it

MATLAB

Call getString() function to get the string from the user. I can't get the string from the function.
function getstring()
input('Enter A String: ','s');
end

Best Answer

function str = getstring()
str = input('Enter A String: ','s');
end
Related Question