MATLAB: HOW TO CREATE TEXTBOX AND PUSH BUTTON USING UICONTROL

textbox;

please tell me how to make this two. make one simple program with textbox validation.
call back for push button and creating push button and textbox all those code in a script.
how to create a handle for these two???

Best Answer

Why not simply use GUIDE? If you want to use uicontrol() and specify all the parameters manually you can do that but I find it more tedious. For example you have to know what all the properties are called and then figure out which ones need to be set and which ones are fine using the defaults. Anyway, see the help for uicontrol() otherwise simplify your life and use GUIDE.
Anyway, to answer your direct question "how to create a handle", The handle is the thing returned by uicontrol when you call it.