link between edit text 1 and 2 when puch button has click

 Risposta accettata

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)

Più risposte (0)

Categorie

Richiesto:

il 13 Mag 2014

Commentato:

il 14 Mag 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by