获取控件的属性算是GUI的一个基本操作,get(handle,'property')比如你的是edit1(双击编辑框,看它的Tag属性对应的名字),你要获取输入的文字,那就是yourInputText = get(handles.edit1,'String');