开发者

display "value" on edit text matlab

Hello I'm creating a GUI and I want the "Edit text" button to display the name of the file I selected....i've stored the filename and the pathn开发者_Python百科ame in a variable called "File_Selected:....but how do i pass the filename only to the EditText function on my GUI


Find the tag of the button (or text field) by double-clicking on the button in GUIDE and looking at the Tag-propert. Assume the tag is called edit2.

Then, inside a callback (which has three input arguments, hObject, eventdata, and handles), you write

set(handles.edit2,'String',File_Selected)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜