سؤال اخر في gui

عندي استفسار يتعلق بالواجهات الرسومية gui في الماتلاب؟؟؟؟؟
هل يمكن عمل واجهة رسومية رئيسية يمكن الانتقال منها إلى الواجهات
الأخرى والرجوع إليها ؟؟ وهل يمكن إضافة push button للخروج من التطبيق؟؟
وكيف يمكن الجمع بين الواجهات في تطبيق واحد؟؟؟؟؟؟؟
وجزاكم الله كل خير

أختكم في الله

نعم كل ما تريديه ينفع بالماتلاب ولكن اجعلي سؤالك مباشر قدر الامكان حتي تتمكني من اخذ اجابات مباشره والله المستعان

لو سمحت ممكن توضح لي مثال بسيط " حتى أتعرف على الجمل البرمجية" وليكن
مثلا على مشروع مساحة الأشكال الهندسية الذي ساعدتني فيه .
أي ان البرنامج له واجهة رئيسية للانتقال الى واجهة مساحة المستطيل وواجهة مساحة المثلث
ويوجد زر للخروج من البرنامج في كل من الواجهات الثلاث.
جزاك الله كل خير

المثال علي المساحه والمحيط للمستطيل والدائره والمثلث القائم

ارجو ان اكون قد وفقت في مساعدتك

ربنا يوفقك

الملف في المرفقات

انا اسف الملف مش كامل اخر تعديل موجود في المرفقات

نزلت المرفقات على الجهاز ولكن لم أفهم من أين أبدأ؟؟؟
وعندما شغلت area.fig ظهرت واجهة مصغرة " أتوقع انها الواجهة الرئيسية"
وعندما أختار المساحة مثلا يظهر في command window :
??? Error using ==> area
Input arguments must be numeric.
??? Error while evaluating uicontrol Callback.
??? Error using ==> area
Input arguments must be numeric.
وضح لي بالتحديد ماذا أفعل؟ وبارك الله فيك

انا سبتلك تعديل في المرفقات

وبعدين ابدئي بتشغيل area.m

اشتغل البرنامج والحمد لله وفعلا رائع
ولكن أين زر الخروج ؟؟

طب فهميني عاوزه زر خروج منيين

مهوفيه علامت الكروس

فيه معلومه ياريت تظبطي الresolution بتاع الشاشه
علي1024 علي شان تشوفي البرنامج بشكل طيب

كيف؟؟
هل الأمر هو print -r1024???

امر الخروج هو close

,ويوضع جنبه اسم الملف المراد غلقه

بالنسبه لل resolution

desktop,right click , properties,setting , resolution , 1024
حتي تريه كما صممته عندي علي الجهاز بنفس الحجم

لو ممكن شرح GUI

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