1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
% Initialisation du sous-GUI
function Table_input_OpeningFcn(hObject, eventdata, handles, varargin)
handles.h=gcbo;
handles.g=gcf;
myhandles=guidata(gcbo);
handles.VarMain1=myhandles.VarMain1;
handles.VarMain2=myhandles.VarMain2;
set(handles.listbox1,'String',[handles.VarMain1 handles.VarMain2]);
guidata(hObject,handles);
% Fonction permettant la sélection dans le ListBox
function listbox1_Callback(hObject, eventdata, handles)
entry=get(handles.listbox1,'String');
index=get(handles.listbox1,'Value');
handles.VarSub2=entry{index};
guidata(hObject,handles);
% Fonction associée au push button permettant de fermer le sous-GUI, à utiliser après saisi du vecteur
function pushbutton1_Callback(hObject, eventdata, handles)
myhandles.VarSub2=handles.VarSub2;
guidata(handles.h,myhandles);
delete(handles.g);
end %if |
Partager