link between edit text 1 and 2 when puch button has click
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
NURHANIDA
el 13 de Mayo de 2014
Comentada: NURHANIDA
el 14 de Mayo de 2014

edit 1 at input 1 is 15, how when I click push button, the 15 will appear at edit2?
0 comentarios
Respuesta aceptada
Sara
el 13 de Mayo de 2014
in the edit1 callback save the variable inputted by the user in a variable:
handles.myvar = get(handles.edit1,'string');
guidata(hObject, handles);
in the pushbutton callback put:
set(handles.edit2,'string',handles.myvar)
Más respuestas (0)
Ver también
Categorías
Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!