开发者

display "value" on edit text matlab

开发者 https://www.devze.com 2022-12-28 19:25 出处:网络
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_Sele

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

精彩评论

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