Bpnjour,
Comment puis-je passer une variable d'une interface A vers une autre interface B.
Interface A.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
function pushbutton1_Callback(hObject, eventdata, handles)
 
handles = guidata(gcbf);
hanldes.N = str2num(get(handles.edit1, 'String'));
guidata(gcbf, handles);
Interface B.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
function pushbutton1_Callback(hObject, eventdata, handles)
handles = guidata(gcbf);
set(handles.text1, 'String', num2str(handles.N));
guidata(gcbf, handles);
Merci pour votre aide .