How about using MATLAB's default input dialog (inputdlg)?
Even if you make your own, it's absolutely gonna work the same, and it won't have any advantages.
To find how to use it please refer to matlab documentation.
I believe this is enough to solve your prob, if not get back to us.
Here is an example in the documentation.