- label
-popup-menu
-insert gambar rangkaian
-insert grfik
-border
seperti ini design skripnya.........
clear all;
clc;
win1=figure(...
'Units','points',...
'Position',[50 50 650 275], ...
'color',[1 1 1],...
'MenuBar','none', ...
'Resize','off', ...
'numbertitle','off', ...
'name','Analisis Penguat IC741 > By. Mokhammad. Lukman Afandi NIM. 075514234');
label1=uicontrol('parent',win1,...
'units','points',...
'position',[170 250 360 15],...
'backgroundcolor',[1 1 1],...
'style','Text',...
'foregroundcolor','b',...
'string','PENGUATAN IC 741',...
'fontname','courier new',...
'fontweight','bold',...
'fontsize',18);
label2=uicontrol('parent',win1,...
'units','points',...
'position',[410 30 230 200],...
'backgroundcolor',[0 0 0],...
'style','frame',...
'foregroundcolor','b',...
'string','IC741',...
'fontname','courier new',...
'fontweight','bold',...
'fontsize',18);
label3=uicontrol('parent',win1,...
'units','points',...
'position',[450 210 150 15],...
'backgroundcolor',[0 0 0],...
'style','Text',...
'foregroundcolor','w',...
'string','Masukkan Data ',...
'fontname','courier new',...
'fontweight','bold',...
'fontsize',14);
label4=uicontrol('parent',win1,...
'units','points',...
'position',[430 180 55 15],...
'backgroundcolor',[0 0 0],...
'style','Text',...
'string','V input = ',...
'foregroundcolor','b',...
'fontweight','normal',...
'fontname','arial',...
'fontsize',10);
label5=uicontrol('parent',win1,...
'units','points',...
'position',[430 160 55 15],...
'backgroundcolor',[0 0 0],...
'style','Text',...
'string','R1 = ',...
'foregroundcolor','b',...
'fontweight','normal',...
'fontname','arial',...
'fontsize',10);
label6=uicontrol('parent',win1,...
'units','points',...
'position',[430 139 55 15],...
'backgroundcolor',[0 0 0],...
'style','Text',...
'foregroundcolor','b',...
'fontweight','normal',...
'string','R2 = ',...
'fontname','arial',...
'fontsize',10);
label7=uicontrol('parent',win1,...
'units','points',...
'position',[430 90 55 15],...
'backgroundcolor',[0 0 0],...
'style','Text',...
'foregroundcolor','b',...
'fontweight','normal',...
'string','Adj = ',...
'fontname','arial',...
'fontsize',10);
label8=uicontrol('parent',win1,...
'units','points',...
'position',[440 65 75 15],...
'backgroundcolor',[0 0 0],...
'style','Text',...
'foregroundcolor','r',...
'fontweight','normal',...
'string','Formula inverting',...
'fontname','arial',...
'fontsize',10);
label9=uicontrol('parent',win1,...
'units','points',...
'position',[530 65 95 15],...
'backgroundcolor',[0 0 0],...
'style','Text',...
'foregroundcolor','r',...
'fontweight','normal',...
'string','Formula Non-inverting',...
'fontname','arial',...
'fontsize',10);
label10=uicontrol('parent',win1,...
'units','points',...
'position',[429 50 95 15],...
'backgroundcolor',[0 0 0],...
'style','Text',...
'foregroundcolor',[1 1 1],...
'fontweight','normal',...
'string','-(R2/R1) x Vin',...
'fontname','arial',...
'fontsize',10);
label11=uicontrol('parent',win1,...
'units','points',...
'position',[530 50 90 15],...
'backgroundcolor',[0 0 0],...
'style','Text',...
'foregroundcolor',[1 1 1],...
'fontweight','normal',...
'string','((R2/R1)+1) x Vin',...
'fontname','arial',...
'fontsize',10);
label12=uicontrol('parent',win1,...
'units','points',...
'position',[2 132 140 15],...
'backgroundcolor',[1 1 1],...
'style','frame',...
'foregroundcolor',[1 1 1],...
'string','IC741',...
'fontname','courier new',...
'fontweight','bold',...
'fontsize',18);
label13=uicontrol('parent',win1,...
'units','points',...
'position',[25 23 100 15],...
'backgroundcolor',[1 1 1],...
'style','frame',...
'foregroundcolor',[1 1 1],...
'string','IC741',...
'fontname','courier new',...
'fontweight','bold',...
'fontsize',18);
label14=uicontrol('parent',win1,...
'units','points',...
'position',[5 40 20 80],...
'backgroundcolor',[1 1 1],...
'style','frame',...
'foregroundcolor',[1 1 1],...
'string','IC741',...
'fontname','courier new',...
'fontweight','bold',...
'fontsize',18);
label15=uicontrol('parent',win1,...
'units','points',...
'position',[2 132 50 15],...
'backgroundcolor',[1 1 1],...
'style','Text',...
'foregroundcolor','b',...
'string','Vo inv =',...
'fontname','arial',...
'fontweight','bold',...
'fontsize',10);
label16=uicontrol('parent',win1,...
'units','points',...
'position',[2 23 70 15],...
'backgroundcolor',[1 1 1],...
'style','Text',...
'foregroundcolor','b',...
'string','Vo Non-inv =',...
'fontname','arial',...
'fontweight','bold',...
'fontsize',10);
label17=uicontrol('parent',win1,...
'units','points',...
'position',[105 132 30 15],...
'backgroundcolor',[1 1 1],...
'style','Text',...
'foregroundcolor','b',...
'string','Volt',...
'fontname','arial',...
'fontweight','bold',...
'fontsize',10);
label18=uicontrol('parent',win1,...
'units','points',...
'position',[125 23 22 15],...
'backgroundcolor',[1 1 1],...
'style','Text',...
'foregroundcolor','b',...
'string','Volt',...
'fontname','arial',...
'fontweight','bold',...
'fontsize',10);
edit1=uicontrol('parent',win1,...
'units','points',...
'position',[480 180 50 15],...
'backgroundcolor',[1 1 1],...
'style','Edit',...
'string',' ',...
'fontname','arial',...
'fontsize',10);
edit2=uicontrol('parent',win1,...
'units','points',...
'position',[480 160 50 15],...
'backgroundcolor',[1 1 1],...
'style','Edit',...
'string',' ',...
'fontname','arial',...
'fontsize',10);
edit7=uicontrol('parent',win1,...
'units','points',...
'position',[595 160 40 15],...
'backgroundcolor',[0 0 0],...
'style','Edit',...
'string',' ',...
'fontname','arial',...
'fontsize',10);
popup1=uicontrol('parent',win1,...
'Units','points',...
'Position',[535 166 55 10], ...
'backgroundcolor',[0.5 0.5 0.5],...
'style','popupmenu',...
'string','Ohm|K.Ohm|M.Ohm',...
'fontname','arial',...
'fontsize',10);
edit3=uicontrol('parent',win1,...
'units','points',...
'position',[480 139 50 15],...
'backgroundcolor',[1 1 1],...
'style','Edit',...
'string',' ',...
'fontname','arial',...
'fontsize',10);
edit8=uicontrol('parent',win1,...
'units','points',...
'position',[595 139 40 15],...
'backgroundcolor',[0 0 0],...
'style','Edit',...
'string',' ',...
'fontname','arial',...
'fontsize',10);
popup2=uicontrol('parent',win1,...
'Units','points',...
'Position',[535 140 55 15], ...
'backgroundcolor',[0.5 0.5 0.5],...
'style','popupmenu',...
'string','Ohm|K.Ohm|M.Ohm',...
'fontname','arial',...
'fontsize',10);
edit4=uicontrol('parent',win1,...
'units','points',...
'position',[480 90 50 15],...
'backgroundcolor',[1 1 1],...
'style','Edit',...
'string',' ',...
'fontname','arial',...
'fontsize',10);
edit5=uicontrol('parent',win1,...
'units','points',...
'position',[53 132 50 15],...
'backgroundcolor',[0.5 0.5 0.5],...
'style','Edit',...
'string',' ',...
'fontname','arial',...
'fontsize',10);
edit6=uicontrol('parent',win1,...
'units','points',...
'position',[73 23 50 15],...
'backgroundcolor',[0.5 0.5 0.5],...
'style','Edit',...
'string',' ',...
'fontname','arial',...
'fontsize',10);
tomproses=uicontrol('parent',win1,...
'Units','points',...
'Position',[470 115 100 15], ...
'backgroundcolor',[1 1 1],...
'style','Pushbutton',...
'foregroundcolor','b',...
'string','Didapatkan Hasil',...
'fontweight','bold',...
'fontname','arial',...
'fontsize',10,...
'Callback','rumusobral1');
tomtutup=uicontrol('parent',win1,...
'Units','points',...
'Position',[410 10 40 15], ...
'backgroundcolor',[0 0 0],...
'style','Pushbutton',...
'foregroundcolor',[1 1 1],...
'string','Exit',...
'fontname','arial',...
'fontsize',10,...
'Callback','Close');
tomtutup=uicontrol('parent',win1,...
'Units','points',...
'Position',[455 10 40 15], ...
'backgroundcolor',[0 0 0],...
'foregroundcolor',[1 1 1],...
'style','Pushbutton',...
'string','lagi',...
'fontname','arial',...
'fontsize',10,...
'Callback','obral');
grafik1=axes('parent',win1,...
'units','points',...
'position',[160 37 240 190],...
'xgrid','on',...
'ygrid','on',...
'xcolor',[.4 0 .1],...
'ycolor',[.4 0 .1],...
'fontsize',8,...
'color',[1 1 1]);
grafik2=axes('parent',win1,...
'units','points',...
'position',[2 150 140 80],...
'xgrid','off',...
'ygrid','off',...
'xcolor',[0.4 0 .15],...
'ycolor',[0.4 0 .15],...
'fontsize',10,...
'color',[1 1 1]);...
[x,map]=...
imread('inverting.jpg');
image(x)
grafik3=axes('parent',win1,...
'units','points',...
'position',[25 40 100 80],...
'xgrid','off',...
'ygrid','off',...
'xcolor',[0.4 0 .15],...
'ycolor',[0.4 0 .15],...
'fontsize',10,...
'color',[1 1 1]);...
[x,map]=...
imread('non-inverting.jpg');
image(x)
semoga bisa membantu teman-teman dalam design GUI MATLAB
thanks.
jangan lupa komennya..
Hwa,,,,
BalasHapusmatlabnya udah sukses gan,,,
BTW ane pertmax