MATLAB: Define a variable via inputdlg

inputdlg

I would like a variable to be assigned via a user prompt. For example, consider the following command:
row = inputdlg('Insert row number.');
When a user inputs 1 in the popup box, the value of the variable "row" is not recognized as a number or a string, but as a '1', with ticks surrounding it.
Is there a way to have a variable defined as a number or a string from a popup box?
Thank you!

Best Answer

row = inputdlg('Insert row number.');
row = str2num(row{:});