How to access a text in that edit text area in GUI

조회 수: 1 (최근 30일)
cse batch4
cse batch4 2015년 3월 18일
답변: Stephen23 2015년 3월 22일
How to access a text in that edit text area in GUI
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2015년 3월 22일
Rather than copying and pasting the title to your question to the question body, why not provide some context? Are you trying to access an edit text field in a GUI from within the callback of some other control?
Stephen23
Stephen23 2015년 3월 22일
@cse batch4: if you want advice then we need to know some details of the code, or even better the actual code itself. You can upload code using the paperclip button above the textbox.

댓글을 달려면 로그인하십시오.

답변 (1개)

Stephen23
Stephen23 2015년 3월 22일
If h is the handle of a uicontrol object, then this code will get its text:
get(h,'String')
There is a list of what this string corresponds to for all uicontrol types in the uicontrol properties documentation.

카테고리

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