In GUI how to take input from keyboard?

4 views (last 30 days)
shruti
shruti on 18 Oct 2013
Answered: Image Analyst on 18 Oct 2013
I'm writing a code for an application where i'll have to take input from keyboard. I've designed a GUI.
How to pass the parameter taken from keyboard to my prtogram?

Answers (2)

ES
ES on 18 Oct 2013
this is GUI's DE(development Environment). Run the GUI by clicking on the Green Play button at the menu. The GUI will execute. there you can type the values into the Text Fields. If you want to pass the Text data to a logic(m script) write callbacks.

Image Analyst
Image Analyst on 18 Oct 2013
Get the string in the edit box from any function that has access to the handles structure. This will include all GUIDE-generated callback functions and any of your own functions that you pass the handles structure into as an input argument. Then:
editBoxContents = get(handles.editBox1, 'String');

Categories

Find more on Desktop in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!