You have to use str2num to change entered value to number. You can use that number then.
http://www.mathworks.de/de/help/matlab/ref/inputdlg.html This should help.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!