Rebonjour
J'ai un petit soucis pour passer une variable d'une interface graphique a une autre. Je pars de l'interface Programme avec le code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function Equation_Callback(hObject, eventdata, handles)
% hObject    handle to Equation (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
%dervs=CopyFrm(hPlots, [], PathName, sDub);
PathName=get(handles.dossierselectionne, 'String');
valeur = get(handles.Fichier,'Value');
fichier=get(handles.Fichier,'String');
if iscell (fichier)
    ch_sel = fichier{valeur};
else
    ch_sel=fichier;
 
end
Chemincomplet =fullfile(PathName,ch_sel)
handles.Chemincomplet=Chemincomplet
guidata(gcbf,handles);
Equations(Chemincomplet)
end
En appelant l'interface Equations avec comme code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
% --- Executes just before Equations is made visible.
function Equations_OpeningFcn(hObject, eventdata, handles, varargin,Chemincomplet)
% 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 Equations (see VARARGIN)
 
% Choose default command line output for Equations
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
Chemincomplet=get(handles.Chemincomplet)
set (handles.Chemindufichier,'String',Chemincomplet)
J'ai essayé de m'inspirer de la discussion 'utilisation des variables d'une autre fonction ', mais je n'arrive pas a faire passer Chemincomplet dans l'interface Equations.
Est ce que quelqu'un aurait une minute pour m'aider, je tourne e nrond sans trouver !!!!

Merci d'avance