Академический Документы
Профессиональный Документы
Культура Документы
AIM: - To implement matlab code to determine look angle (azimuth and elevation) of satellite.
MATLAB CODE:
clc;
clear all;
close all;
%Look angle calculation using Maltlab
fprintf('\n\n');
fprintf('..........Look Angle parameters........\n\n');
Ls=input('satellite latitude =');
ls=input('satellite longitude =');
Le=input('Earth station latitude =');
le=input('Earth station longitude =');
rs=input('The distance between earth centre to satellite in meter =');
fprintf('\n');
Re=6378*10^3;
%radius of earth in meter
gama=acosd(cosd(Ls)*cosd(Le)*cosd(ls-le)+sind(Ls)*sind(Le));
d1=(Re^2+rs^2-2*Re*rs*cosd(gama));
d=sqrt(d1); %slant distance
El=acosd((rs*sind(gama))/d);
a=abs(le-ls);
alfa=asind(sind(a)*cosd(Ls)/sind(gama));
fprintf('..........Look Angle calculation........\n\n');
if(Le>0 && ls>0)
Az=180-alfa;
fprintf('The azimuth angle in degree is= %f \n',Az);
elseif(Le>0 && ls<0);
Az=180+alfa;
fprintf('The azimuth angle in degree is= %f \n',Az);
elseif(Le<0 && ls>0)
Az=alfa;
fprintf('The azimuth angle in degree is= %f =\n',Az);
else Az=360-alfa;
fprintf('The azimuth angle in degree is= %f \n',Az);
end
fprintf('Elevation angle is = %f \n',El);
EXPERIMENT NO.9
AIM: - To implement matlab code for uplink and downlink budget calculation.
RESULT: