DAFTAR PUSTAKA
A.2 Gui LTE Simulator
function varargout = LTEsimulator(varargin)
% LTESIMULATOR MATLAB code for LTEsimulator.fig
% Begin initialization code - DO NOT EDIT gui_Singleton = 1;
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% --- Executes just before LTEsimulator is made visible.
function LTEsimulator_OpeningFcn(hObject, eventdata, handles, varargin)
% Choose default command line output for LTEsimulator handles.output = hObject;
handles.text56],'enable', 'off');
% UIWAIT makes LTEsimulator wait for user response (see UIRESUME) function varargout = LTEsimulator_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
varargout{1} = handles.output;
% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu1 (see GCBO)
function popupmenu1_CreateFcn(hObject, eventdata, handles)
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on selection change in popupmenu2.
function popupmenu2_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function popupmenu2_CreateFcn(hObject, eventdata, handles)
% eventdata reserved - to be defined in a future version of MATLAB function edit9_CreateFcn(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit13_CreateFcn(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit14_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit14 (see GCBO)
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
% --- Executes during object creation, after setting all properties.
function edit15_CreateFcn(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit7_CreateFcn(hObject, eventdata, handles)
function edit8_CreateFcn(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'),
% --- Executes during object creation, after setting all properties.
function edit30_CreateFcn(hObject, eventdata, handles)
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles) global i
set([handles.text47,...
handles.text48,...
handles.text49,...
handles.text56],'enable', 'on');
set(handles.edit38, 'enable', 'on');
HYST_DROP = str2num(get(handles.edit46,'string'));
R_jar1 = jarijari_model_erceg(MAPL_jar1, frek_jar1, hb_jar1, ht_jar1); %jari-jari jaringan pertama
% set (handles.edit32,'string', R_jar1);
titikpusat_jar1=[0 0]; % titik pusat bts jaringan pertama R_jar2 = jarijari_model_erceg(MAPL_jar2, frek_jar2, hb_jar2, ht_jar2); %jari-jari jaringan kedua
R_jar3 = jarijari_model_erceg(MAPL_jar3, frek_jar3, hb_jar3, ht_jar3); %jari-jari jaringan kedua
set(handles.edit40,'string', iterasi);
x1=[];
axes(handles.axes1);cla;hold off;
kuat_sinyal1=[];
i=1;
for t=0:ts:waktu_tempuh
set(handles.edit41,'string', t)
set(handles.edit45,'string', titik_sample);
titik_sample = k+1;
x1=(jarak*cosd(sudut))*(t./waktu_tempuh);
y1=((-jarak*sind(sudut))./(jarak*cosd(sudut)))*x1;
d_jar1=sqrt((y1^2)+(x1^2));
sinyal_fading1(k)=f1;
%if iterasi=-113
if strcmp(flag,'BTS 1')
if kuat_sinyal1(k)>=thresh && kuat_sinyal2(k) <thresh kuat_handover(k)=kuat_sinyal1(k);
drop='connect';
keputusan='continue';
%drop='connect';
elseif kuat_sinyal1(k)<thresh && kuat_sinyal2(k) >=thresh kuat_handover(k)=kuat_sinyal2(k);
keputusan='HANDOVER';
drop='connect';
flag='BTS 2';
elseif kuat_sinyal1(k)>=thresh && kuat_sinyal2(k) >=thresh
&& abs (kuat_sinyal1(k) - kuat_sinyal2(k)) > HYST_DROP kuat_handover(k)=kuat_sinyal1(k);
keputusan='HANDOVER';
drop='connect';
flag='BTS 2';
elseif kuat_sinyal1(k)>=thresh && kuat_sinyal2(k) >=thresh
&& abs (kuat_sinyal1(k) - kuat_sinyal2(k)) <= HYST_ADD kuat_handover(k)=kuat_sinyal1(k);
keputusan='HANDOVER';
drop='connect';
flag='BTS 1 & BTS 2';
elseif kuat_sinyal1(k)>=thresh && kuat_sinyal2(k) >=thresh
&& abs (kuat_sinyal1(k) - kuat_sinyal2(k)) <= HYST_DROP kuat_handover(k)=kuat_sinyal2(k);
keputusan='HANDOVER';
drop='connect';
flag='BTS 2 & BTS 1';
elseif kuat_sinyal1(k)<thresh && kuat_sinyal2(k) <thresh kuat_handover(k)=kuat_sinyal1(k);
if kuat_sinyal2(k)>=thresh && kuat_sinyal3(k) <thresh kuat_handover(k)=kuat_sinyal2(k);
drop='connect';
keputusan='continue';
elseif kuat_sinyal2(k)>=thresh && kuat_sinyal3(k) >=thresh
&& abs (kuat_sinyal2(k) - kuat_sinyal3(k)) > HYST_ADD kuat_handover(k)=kuat_sinyal2(k);
keputusan='continue';
drop='connect';
elseif kuat_sinyal2(k)<thresh && kuat_sinyal3(k) >=thresh kuat_handover(k)=kuat_sinyal3(k);
keputusan='HANDOVER';
drop='connect';
flag='BTS 3';
elseif kuat_sinyal2(k)>=thresh && kuat_sinyal3(k) >=thresh
&& abs (kuat_sinyal2(k) - kuat_sinyal3(k)) > HYST_DROP kuat_handover(k)=kuat_sinyal2(k);
keputusan='HANDOVER';
drop='connect';
flag='BTS 3';
elseif kuat_sinyal2(k)>=thresh && kuat_sinyal3(k) >=thresh
&& abs (kuat_sinyal2(k) - kuat_sinyal3(k)) <= HYST_ADD kuat_handover(k)=kuat_sinyal2(k);
keputusan='HANDOVER';
drop='connect';
flag='BTS 2 & BTS 3';
elseif kuat_sinyal2(k)>=thresh && kuat_sinyal3(k) >=thresh
&& abs (kuat_sinyal2(k) - kuat_sinyal3(k)) <= HYST_DROP kuat_handover(k)=kuat_sinyal3(k);
keputusan='HANDOVER';
drop='connect';
flag='BTS 3 & BTS 2';
elseif kuat_sinyal2(k)<thresh && kuat_sinyal3(k) <thresh kuat_handover(k)=kuat_sinyal2(k);
if kuat_sinyal1(k)>=thresh && kuat_sinyal2(k) >=thresh &&
abs (kuat_sinyal1(k) - kuat_sinyal2(k)) <= HYST_ADD kuat_handover(k)=kuat_sinyal1(k);
keputusan='continue';
drop='connect';
elseif kuat_sinyal1(k)<thresh && kuat_sinyal2(k) >=thresh kuat_handover(k)=kuat_sinyal2(k);
keputusan='HANDOVER';
drop='connect';
flag='BTS 2';
elseif kuat_sinyal1(k)>=thresh && kuat_sinyal2(k) >=thresh
&& abs (kuat_sinyal1(k) - kuat_sinyal2(k)) <= HYST_DROP kuat_handover(k)=kuat_sinyal2(k);
keputusan='continue';
if kuat_sinyal2(k)>=thresh && kuat_sinyal3(k) >=thresh &&
abs (kuat_sinyal2(k) - kuat_sinyal3(k)) <= HYST_ADD kuat_handover(k)=kuat_sinyal2(k);
keputusan='continue';
drop='connect';
elseif kuat_sinyal2(k)<thresh && kuat_sinyal3(k) >=thresh kuat_handover(k)=kuat_sinyal3(k);
keputusan='HANDOVER';
drop='connect';
flag='BTS 3';
elseif kuat_sinyal2(k)>=thresh && kuat_sinyal3(k) >=thresh
&& abs (kuat_sinyal2(k) - kuat_sinyal3(k)) <= HYST_DROP kuat_handover(k)=kuat_sinyal3(k);
Prob_drop=(abs(thresh)/abs(-115));
set(handles.edit53,'string',Prob_drop);
set(handles.edit42,'string', drop);
if strcmp(drop,'drop call')
r = {q}; Asli dari BTS1','Sinyal Fading terhadap BTS1','Sinyal Asli dari BTS2 + Fading','Sinyal Asli dari BTS2','Sinyal Fading terhadap
BTS2','Sinyal Asli dari BTS3 + Fading','Sinyal Asli dari BTS3','Sinyal Fading terhadap BTS3');
% --- Executes during object creation, after setting all properties.
function edit32_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit32 (see GCBO)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit34_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit34_CreateFcn(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit35_CreateFcn(hObject, eventdata, handles)
a=3.2*(log10(11.75*ht)^2)-4.97; %faktor koreksi untuk daerah kota yang besar
pathloss=46.3+(33.9*log10(f))-(13.82*log10(hb))-a+((44.9-6.55*log10(hb))*log10(d_UMTS))+3; %menghitung nilai pathloss model cost231 %nilai RSCP ================================================
pathloss_exp=4; % digunakan untuk menghitung Ec/Io daya_kanal_trafik=0.8;
RSCP = EIRP-pathloss+Ec_Io; %menentukan besar sinyal penerimaan pada jaringan UMTS koreksi_rx=-10.8*log10(ht/2); %faktor koreksi tinggi antena
penerima
shadow_fading=15.81; koreksi_rx=-10.8*log10(ht/2); %faktor koreksi tinggi antena
penerima
%======================= Rayleigh Generate Jaringan Pertama
=========================
function fading=raygen_jar1(panjang_total,v) global i
%% fungsi untuk membangkitkan fading Rayleigh menggunakan model jakes 2.
fc=2.1*10^9; %frekuensi pembawa
%======================= Rayleigh Generate Jaringan Kedua
=========================
function fading=raygen_jar2(panjang_total,v) global i
%% fungsi untuk membangkitkan fading Rayleigh menggunakan model jakes 2. % v=0;
fd=v/3.6*fc/3e8; %chanfreq dalam MHz omega_m=2*pi*fd;
end
%% fungsiuntuk membangkitkan fading Rayleigh menggunakanmodeljakes2.
% panjang_total =1000;
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to edit38 (see GCBO)
% --- Executes during object creation, after setting all properties.
function edit39_CreateFcn(hObject, eventdata, handles)
% --- Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
handles.edit30;...
% --- Executes during object creation, after setting all properties.
function edit45_CreateFcn(hObject, eventdata, handles)
% --- Executes on button press in radiobutton4.
function radiobutton4_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton4 (see GCBO)
% --- Executes on button press in radiobutton3.
function radiobutton3_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton3 (see GCBO)
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles) clear all;
close all;
testing1;
function help_Callback(hObject, eventdata, handles) open('Help\help.html');
function edit46_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit46_CreateFcn(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit51_CreateFcn(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit50_CreateFcn(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit48_CreateFcn(hObject, eventdata, handles)
function edit47_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit47_CreateFcn(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit52_CreateFcn(hObject, eventdata, handles)
% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles) set(Cover,'Visible','on')
set(testing,'Visible','off')
function edit53_Callback(hObject, eventdata, handles)
% --- Executes during object creation, after setting all properties.
function edit53_CreateFcn(hObject, eventdata, handles)
LAMPIRAN B