In GUI how to take input from keyboard?

조회 수: 5 (최근 30일)
shruti
shruti 2013년 10월 18일
답변: Image Analyst 2013년 10월 18일
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?

답변 (2개)

ES
ES 2013년 10월 18일
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 2013년 10월 18일
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');

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by