1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| function test
fenetre1=figure;
set(fenetre1,'position',[500,100,350,600]);
set(fenetre1,'Name','Saisie des données du problèmes');
set(fenetre1,'menubar','none');
handles.slider = uicontrol('Style', 'slider', 'Min',0,'Max', 10,'Position', [325 20 20 550],'Callback', @PlotGUI);
handles.indices = 0;
position=568-handles.indices;
handles.texte = uicontrol(fenetre1,'style','text','position',[9,position,282,22],'string','Paramètres du modèle','fontsize',12,'fontweight','bold');
guidata(fenetre1, handles)
function PlotGUI(hObject,eventdata)
fig = get(hObject, 'parent');
handles = guidata(fig);
handles.indices = get(hObject,'Value');
position=568-handles.indices;
set(handles.texte, 'position',[9,position,282,22])
guidata(fig, handles) |
Partager