Code covered by the BSD License
-
ITUP1546(varargin)
ITUP1546 M-file for ITUP1546.fig
-
D06(f,h1,h2)
17 An approximation to the 0.6 Fresnel clearance path length
-
Emax(d,t,path)
2 Maximum field-strength values
-
FindDNominals(d)
-
P1546FieldStr(d,f,t,heff,vara...
P1546FieldStr ITU 1546-3 Field strength calculator
-
P1546FieldStrbeta(d,f,t,heff,...
P1546FieldStr ITU 1546-3 Field strength calculator
-
Qi(x)
15 An approximation to the inverse complementary cumulative normal distribution
-
Step_12(f,tca)
Step 12: If information on the terrain clearance angle at a
-
Step_13(d,f,t,eff,eff1)
Step 13: Calculate the estimated field strength due to tropospheric
-
Step_14(h2,f,path,varargin)
Step 14: Correct the field strength for receiving/mobile antenna height
-
Step_15(d,h1,ha,f,env)
Step 15: If applicable, reduce the field strength by adding the
-
Step_16()
Step 16: If the field strength at a receiving/mobile antenna adjacent to
-
Step_17(E,Efs,Ese,ds,dtotal)
Step 17: If necessary, limit the resulting field strength to the maximum
-
Step_18(fs,f)
Step 18: If required, convert field strength to equivalent basic transmission loss for the path using
-
V(Kv,h1)
-
d =FS_find_dnew(FS,f,heff,T,p...
FS_FIND_D ITU 1546 Field strength calculator: Find d for known Fieldstrength
-
find_d(FS,f,heff,T,path,h2)
Peverted code the code find the closest value d value that equates the
-
h1Calc(d,heff,ha,hb,path)
3 Determination of transmitting/base antenna height, h1
-
h2corr(h2,f,varargin)
-
searchclosest(x,v)
The following code tidbit is by Dr. Murtaza Khan, modified to return
-
step6_10(figure,h1,dinf,dsup,...
function E = step6_10(figure,h1,dinf,dsup,d,path,f,Emaxvalue,t)
-
step7_normal(figureStep6,h1,d...
-
step81(tabulatedValues,h1,din...
Step 8: Obtain the field strength exceeded at 50% locations for a
-
step814_815(tabulatedValues,h...
Step 8.1.4: Obtain the field strength exceeded at 50% locations
-
step82(tabulatedValues,h1,din...
Step 8.2: For a transmitting/base antenna height h1 less than 10 m
-
P1546validation.m
-
Test_D06.m
-
Test_Emax.m
-
Test_FindDNominals.m
-
Test_P1546FieldStr.m
-
Test_Qi.m
-
Test_V.m
-
Test_h1Calc.m
-
Test_searchclosest.m
-
Test_step6_10.m
-
Test_step7_normal.m
-
Test_step81.m
-
Test_step814_815.m
-
Test_step82.m
-
View all files
from
ITU-R p.1546 calculator
by Jef Statham
This an implementation of the ITU-R p.1546 model. Mixed land a sea paths not implemented.
|
| searchclosest(x,v)
|
%The following code tidbit is by Dr. Murtaza Khan, modified to return
%vector y instead of index i if no exact value found. Also added
%functionality for when v is outside of vector x min and max.
%23 May 2007 (Updated 09 Jul 2009)
% Obtained from http://www.mathworks.com/matlabcentral/fileexchange/15088
%Begin
% % Algorithm
% % First binary search is used to find v in x. If not found
% % then range obtained by binary search is searched linearly
% % to find the closest value.
% %
% % INPUT:
% % x: vector of numeric values,
% % x should already be sorted in ascending order
% % (e.g. 2,7,20,...120)
% % v: numeric value to be search in x
% %
% % OUTPUT:
% % i: lower or equal value to v in x
% % cv: value that is equal or higher to v in x
function [i,cv] = searchclosest(x,v)
if x(end) < v
i =x(end-1:end);
cv = i(2);
i = i(1);
return
elseif x(1) > v
i = x(1:2);
cv = i(2);
i = i(1);
return
end
from=1;
to=length(x);
% % Phase 1: Binary Search
while from<=to
mid = round((from + to)/2);
diff = x(mid)-v;
if diff==0
i=v;
cv=v;
return
elseif diff<0 % x(mid) < v
from=mid+1;
else % x(mid) > v
to=mid-1;
end
end
i = x(to:from);
cv = i(2);
i = i(1);
% % % --------------------------------
% % % Author: Dr. Murtaza Khan
% % % Email : drkhanmurtaza@gmail.com
% % % --------------------------------
end
%End tidbit
|
|
Contact us at files@mathworks.com