in PhatHienLSB.M i have a PushMo_Callbackfunction PushMo_Callback(hObject, eventdata, handles)% hObject handle to PushMo (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[filename, pathname] = uigetfile( ...{ '*.bmp','BMP (*.bmp)'; ...'*.png','PNG(*.png)'; ... '*.jpg', 'JPG (*.jpg)'; ... '*.*', 'All Files (*.*)'}, ... 'Moi ban chon tep anh');set(handles.Edit1,'String',[filename,pathname]); TachTin.mfunction TachThongDiep_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% varargin command line arguments to TachThongDiep (see VARARGIN)
% Choose default command line output for TachThongDiep
handles.output = hObject;filename=get(handles.PhatHienLSB.Edit1,'String');set(handles.Edit2,'string',filename');% Update handles structure
guidata(hObject, handles); help me--> filename=get(handles.PhatHienLSB.Edit1,'String'); -->set(handles.Edit2,'string',filename');
MATLAB: Call Edit text from another Edit text in another Gui
gui
Best Answer