DSPRelated.com
Forums

implemting okumura model m file into simulink

Started by pri August 8, 2007
hi everyone,

I want to call the code for okumura model wriiten in m file into
SIMULINK. I know that it can be done by the embedded matlab function
but can anyone please help on how we can do so? the matlab code is

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% OKUMURA MODEL
% RANGE OF FREQUENCIES: 150 TO 1920 MHz
% DISTANCES OF 1 Km TO 100 Km
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Hte0; % Base Station Antenna Height
Hre=2; % Mobile Antenna Height
d = 50; % Distance 50 Km
lamda=(3*10^8)/(900*10^6);
Lf = 10.*log((lamda^2)/((4*pi)^2)*d^2); % Free Space Propagation
Loss
Amu = 35; % Median Attenuation Relative to Free Space (900 MHz
and 30 Km)
Garea = 9; % Gain due to the Type of Environment (Suburban Area)
Ghte = 20.*log(Hte/200); % Base Station Antenna Height Gain Factor
Ghre = 10.*log(Hre/3);

% Propagation Path Loss
L50 = Lf+Amu-Ghte-Ghre-Garea
I would be thankful if any of you guys can reply to my query..

thanks,
pri