To get started, select MATLAB Help or Demos from the Help menu.
>> A=(40+45/60+45.45/3600)*pi/180
A =
0.711442018005754
>> A=(45+45/60+45.45/3600)*pi/180
A =
0.79870848060547
>> Z=(40+45/60+45.45/3600)*pi/180
Z =
0.711442018005754
>> fi=(53+12/60+12.1212/3600)*pi/180
fi =
0.928573927296898
>> alfa=(11+4/60+10.5/3600)*pi/12
alfa =
2.89801013985833
>> eH=[ sin(Z)*cos(A) ; sin(Z)*sin(A) ; cos (Z) ]
??? Error using ==> cos
Not enough input arguments.
Error in ==> cos at 14
[varargout{1:nargout}] = builtin('cos', varargin{:});
>> eH=[ sin(Z)*cos(A) ; sin(Z)*sin(A) ; cos(Z) ]
eH =
0.455502931286553
0.467793019060391
0.757421131806951
>> P2=[ 1 0 0 ; 0 -1 0 ; 0 0 1 ]
P2 =
1 0 0
0 -1 0
0 0 1
>> eHA=R2((pi/2)-fi)*R3(-pi)*eH
eHA =
-0.818429011121541
-0.467793019060391
0.333681951973704
>> delta=arsinZ
??? Undefined function or variable 'arsinZ'.
>> delta=asinZ
??? Undefined function or variable 'asinZ'.
>> delta=asin(Z)
delta =
0.791548063445064
>> atan(-0.467793019060391/-0.818429011121541)=h
??? Undefined function or variable 'h'.
>> atan(h)=(-0.467793019060391/-0.818429011121541)
??? Undefined function or variable 'h'.
>> h=tan(-0.467793019060391/-0.818429011121541)
h =
0.643191935246815
>> h=tan(-0.467793019060391/-0.818429011121541)
h =
0.643191935246815
>> h=atan(-0.467793019060391/-0.818429011121541)
h =
0.51925599183701
>> A=(157+27/60+27.27/3600)*pi/180
A =
2.74815311595591
>> Z=(53+23/60+23.23/3600)*pi/180
Z =
0.931827554574428
>> fi=(43+53/60+53.5321/3600)*pi/180
fi =
0.76616818436143
>> eH=[ sin(Z)*cos(A) ; sin(Z)*sin(A) ; cos(Z) ]
eH =
-0.741380766159559
0.307733312059238
0.596367980543654
>> eHA=R2((pi/2)-fi)*R3(-pi)*eH
eHA =
0.0843314492356884
-0.307733312059238
0.947728028138273
>> h=atan(-0.307733312059238/0.0843314492356884)
h =
-1.30332219712637
>> h*180/pi
ans =
-74.6748612410586
>> -74.6748612410586+360
ans =
285.325138758941
>> 285.325138758941/15
ans =
19.0216759172627
>> 0.0216759172627*60
ans =
1.300555035762
>> 0.300555035762*3600
ans =
1081.9981287432
>> 0.300555035762*60
ans =
18.03330214572
>> delta=asin(Z)
delta =
1.19941667363297
>> 1.19941667363297
ans =
1.19941667363297
>> 1.19941667363297*pi/180
ans =
0.0209337700582136
>> 1.19941667363297*180/pi
ans =
68.7215132767893
>> 0.7215132767893*60
ans =
43.290796607358
>> 0.290796607358*60
ans =
17.44779644148
>> eHA=R2((pi/2)-fi)*R3(-pi)*eH
eHA =
0.0843314492356884
-0.307733312059238
0.947728028138273
>> eHA=R2((pi/2)+fi)*R3(-pi)*eH
eHA =
-0.943784605393479
-0.307733312059238
0.120709681763009
>> eHA=R2(fi-(pi/2))*R3(pi)*eH
eHA =
0.943784605393479
-0.307733312059238
-0.120709681763008
>> h=atan(-0.307733312059238/0.943784605393479)
h =
-0.315193114820429
>> h*180/pi
ans =
-18.059235210793
>> h+360
ans =
359.68480688518
>> -18.059235210793+360
ans =
341.940764789207
>> 341.940764789207/15
ans =
22.7960509859471
>> 0.7960509859471*60
ans =
47.763059156826
>> 0.763059156826*60
ans =
45.78354940956
>> delta=asin(Z)
delta =
1.19941667363297
>> 1.19941667363297*180/pi
ans =
68.7215132767893
>> 0.7215132767893*60
ans =
43.290796607358
>> 0.290796607358*60
ans =
17.44779644148