comment relaie les paramètre d entrer(edit) dans la 1 er interface avec les paramètre de sortie dans la 2eme interface(text)qui sont des équation en fonction des paramètre d entre
% LA FUGIRE de linterface de choix de zone urbain
handles(60)= figure(‘units’,‘pixels’,…
‘position’, [10 60 450 550],…
‘color’,[0.1 0.2 0.6],…
‘Resize’,‘off’ ,…
‘visible’,‘on’,…
‘numbertitle’,‘off’,…
‘name’,’[LOGICIEL] Zone urbain’,…
‘menubar’,‘none’,…
‘tag’,‘interface’);
text60 = uicontrol( handles(60), ‘style’ , ‘text’ , ‘position’ , [100,475,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ‘Paramètres d entrèe’ , ‘fontsize’ , 20 )
movegui(‘center’);% POUR CENTRER LINTERFACE%%%%%%%%%%%%%%%%%%%
%LEs BOTONs de suivant
handles(61)=uicontrol(handles(60),‘style’,‘pushbutton’,…
‘units’,‘normalized’,…
‘position’,[0.7 0.1 0.2 0.07],…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,‘Suivant’,…
‘callback’,‘val_variable7 = set(handles(70) , ‘‘visible’’,’‘on’’ )’,…
‘tag’,‘bouton+’);
%LE BOTON RETOUR
handles(62)=uicontrol(handles(60),‘style’,‘pushbutton’,…
‘units’,‘normalized’,…
‘position’,[0.1 0.1 0.2 0.07],…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,‘RETOUR’,…
‘callback’,‘val_variable7 = set(handles(60) , ‘‘visible’’,’‘off’’ )’,…
‘tag’,‘bouton+’);
%les text
text61 = uicontrol( handles(60), ‘style’ , ‘text’ , ‘position’ , [10,390,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ’ Qualitè de service’ , ‘fontsize’ , 14 )
ed_a=uicontrol(gcf,‘style’,‘edit’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.73 0.2 0.04],…
‘fontsize’,12);
text62 = uicontrol( handles(60), ‘style’ , ‘text’ , ‘position’ , [10,350,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ’ Nbre de frèq disp’ , ‘fontsize’ , 14 )
ed_b=uicontrol(gcf,‘style’,‘edit’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.65 0.2 0.04],…
‘fontsize’,12);
text63 = uicontrol( handles(60), ‘style’ , ‘text’ , ‘position’ , [10,310,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ’ nombre d abonnès’ , ‘fontsize’ , 14 )
ed_c=uicontrol(gcf,‘style’,‘edit’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.58 0.2 0.04],…
‘fontsize’,12);
text64 = uicontrol( handles(60), ‘style’ , ‘text’ , ‘position’ , [10,270,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ’ nombre d appel’ , ‘fontsize’ , 14 )
ed_d=uicontrol(gcf,‘style’,‘edit’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.51 0.2 0.04],…
‘fontsize’,12);
text65 = uicontrol( handles(60), ‘style’ , ‘text’ , ‘position’ , [10,230,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ’ durèe d appel(s)’ , ‘fontsize’ , 14 )
ed_e=uicontrol(gcf,‘style’,‘edit’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.435 0.2 0.04],…
‘fontsize’,12);
text66 = uicontrol( handles(60), ‘style’ , ‘text’ , ‘position’ , [10,190,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ‘choix de motif’ , ‘fontsize’ , 14 )
ed_f=uicontrol(gcf,‘style’,‘edit’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.355 0.2 0.04],…
‘fontsize’,12);
text67 = uicontrol( handles(60), ‘style’ , ‘text’ , ‘position’ , [10,150,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ ,’ rayon de cellule(m)’ , ‘fontsize’ , 14 )
ed_g=uicontrol(gcf,‘style’,‘edit’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.28 0.2 0.04],…
‘fontsize’,12);
h=findobj(gcbf,‘tag’,‘edit_a’);
a=str2num(get(h,‘string’));
h=findobj(gcbf,‘tag’,‘edit_b’);
b=str2num(get(h,‘string’));
h=findobj(gcbf,‘tag’,‘edit_c’);
c=str2num(get(h,‘string’));
h=findobj(gcbf,‘tag’,‘edit_d’);
d=str2num(get(h,‘string’));
h=findobj(gcbf,‘tag’,‘edit_e’);
e=str2num(get(h,‘string’));
h=findobj(gcbf,‘tag’,‘edit_f’);
f=str2num(get(h,‘string’));
h=findobj(gcbf,‘tag’,‘edit_g’);
g=str2num(get(h,‘string’));
% LA FUGIRE de linterface de choix de zone urbain (Paramètres de sortie)
handles(70)= figure(‘units’,‘pixels’,…
‘position’, [10 60 450 550],…
‘color’,[0.1 0.2 0.6],…
‘Resize’,‘off’ ,…
‘visible’,‘off’,…
‘numbertitle’,‘off’,…
‘name’,’[LOGICIEL] Zone urbain’,…
‘menubar’,‘none’,…
‘tag’,‘interface’);
text70 = uicontrol( handles(70), ‘style’ , ‘text’ , ‘position’ , [100,475,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ‘Paramètres de sortie’ , ‘fontsize’ , 20 )
movegui(‘center’);% POUR CENTRER LINTERFACE%%%%%%%%%%%%%%%%%%%
%LEs BOTONs de suivant
handles(71)=uicontrol(handles(70),‘style’,‘pushbutton’,…
‘units’,‘normalized’,…
‘position’,[0.7 0.06 0.2 0.07],…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,‘Suivant’,…
‘callback’,‘val_variable7 = set(handles(80) , ‘‘visible’’,’‘on’’ )’,…
‘tag’,‘bouton+’);
%LE BOTON RETOUR
handles(72)=uicontrol(handles(70),‘style’,‘pushbutton’,…
‘units’,‘normalized’,…
‘position’,[0.1 0.06 0.2 0.07],…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,‘RETOUR’,…
‘callback’,‘val_variable7 = set(handles(70) , ‘‘visible’’,’‘off’’ )’,…
‘tag’,‘bouton+’);
%les text
text71 = uicontrol( handles(70), ‘style’ , ‘text’ , ‘position’ , [10,390,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ’ Trafic / Usagè’ , ‘fontsize’ , 14 )
b1=uicontrol(handles(70),‘style’,‘text’,…
‘position’,[0.6 0.73 0.2 0.04],…
‘units’,‘normalized’,…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,’’,…
‘callback’,@ajouet,…
‘tag’,‘bouton+’);
text72 = uicontrol( handles(70), ‘style’ , ‘text’ , ‘position’ , [10,350,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ‘Trafic Total’ , ‘fontsize’ , 14 )
b2=uicontrol(handles(70),‘style’,‘text’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.65 0.2 0.04],…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,’’,…
‘callback’, @ajouer,…
‘tag’,‘bouton+’);
text73 = uicontrol( handles(70), ‘style’ , ‘text’ , ‘position’ , [10,310,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ’ Nbre de frèq /cellule’ , ‘fontsize’ , 14 )
b3=uicontrol(handles(70),‘style’,‘text’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.58 0.2 0.04],…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,’’,…
‘callback’, @ajouer,…
‘tag’,‘bouton+’);
text74 = uicontrol( handles(70), ‘style’ , ‘text’ , ‘position’ , [10,270,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ’ Nombre TCH total’ , ‘fontsize’ , 14 )
b4=uicontrol(handles(70),‘style’,‘text’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.51 0.2 0.04],…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,’’,…
‘callback’, @ajouer,…
‘tag’,‘bouton+’);
text75 = uicontrol( handles(70), ‘style’ , ‘text’ , ‘position’ , [10,230,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ’ Nombre TRX total’ , ‘fontsize’ , 14 )
b5=uicontrol(handles(70),‘style’,‘text’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.435 0.2 0.04],…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,’’,…
‘callback’, @ajouer,…
‘tag’,‘bouton+’);
text76 = uicontrol( handles(70), ‘style’ , ‘text’ , ‘position’ , [10,190,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ , ’ Nombre de cellule’ , ‘fontsize’ , 14 )
b6=uicontrol(handles(70),‘style’,‘text’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.355 0.2 0.04],…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,’’,…
‘callback’, @ajouer,…
‘tag’,‘bouton+’);
text77 = uicontrol( handles(70), ‘style’ , ‘text’ , ‘position’ , [10,150,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ ,’ distance de rèutilisation’ , ‘fontsize’ , 14 )
b7=uicontrol(handles(70),‘style’,‘text’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.285 0.2 0.04],…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,’’,…
‘callback’, @ajouer,…
‘tag’,‘bouton+’);
text78 = uicontrol( handles(70), ‘style’ , ‘text’ , ‘position’ , [10,110,250,30] ,‘fontsize’,16,…
‘foregroundcolor’,[1 1 0.501],‘backgroundcolor’,[0.1 0.2 0.6],‘string’ ,’ Nombre de site’ , ‘fontsize’ , 14 )
b8=uicontrol(handles(70),‘style’,‘text’,…
‘units’,‘normalized’,…
‘position’,[0.6 0.21 0.2 0.04],…
‘fontsize’,12,…
‘Interruptible’,‘off’,…
‘string’,’’,…
‘callback’,’@ajouter’,…
‘tag’,‘bouton+’);
r