Google Earth Path Matlab
***This is the code. I wrote the parameters as a matrix, but when I upload it to google earth, a straight line appears. Normally it should rise. How can I solve this?
% Assuming stage 1 descent
% latitude
lat_descent1 = [
6
6
6
6
6.00001697808819
6.00001537579460
6.00000819533646
5.99997308778827
5.99993743652977
5.99986643730126
5.99977748747485
5.99967127631096
5.99954042243161
5.99938373713836
5.99919807860050
5.99897890584989
5.99872744189481
5.99843907725965
5.99811116804459
5.99774107034979
5.99730870592835
5.99684630397024
5.99633378813147
5.99576851607858
5.99514784547808
5.99446913399650
5.99372973930037
5.99292701905621
5.99205833093055
5.99112103258991
5.99011248170083
5.98905626627310
5.98789786285266
5.98666076970945
5.98534241293727
5.98394021862993
5.98245161288123
5.98087402178496
5.97920487143495
5.97744158792498
5.97558159734886
5.97373789310211
5.97167615820284
5.96950923763312
5.96723444408868
5.96484909026525
5.96235048885854
5.95973595256429
5.95700279407821
5.95414832609604
5.95116986131349
5.94806471242629
5.94492652765109
5.94155625671142
5.93804789054305
5.93439800833756
5.93060313256953
5.92665972899659
5.92256420665941
5.91831291788169
5.91390215827018
5.90932816671465
5.90454689863020
5.89963276058423
5.89454094174210
5.88926679244302
5.88380555315758
5.87815235448773
5.87230221716680
5.86625005205950
5.85999066016193
5.85351873260155
5.84682885063721
5.84063471984696
5.83349204278013
5.82611432628191
5.81849567515460
5.81063008147944
5.80251142461667
5.79413347120547
5.78548987516401
5.77657417768940
5.76737980725774
5.75790007962409
5.74812819782249
5.73805725216592
5.72768022024636
5.71698996693473
5.70597924438095
5.69464069201386
5.68296683654132
5.67095009195012
5.65858275950603
5.63984071719353
5.62678297994443
5.61342475612478
5.59976883512710
];
% longitude
lon_descent1 = [
50
50
50
50
50.0000021566457
50.0000019531139
50.0000010410146
49.9999964117640
49.9999918695666
49.9999825682685
49.9999707308957
49.9999565505254
49.9999389636032
49.9999177405055
49.9998924374550
49.9998626677352
49.9998280196824
49.9997880927597
49.9997424870414
49.9996908026018
49.9996342138181
49.9995691475952
49.9994967676766
49.9994166653836
49.9993284320374
49.9992316589594
49.9991259374707
49.9990108588927
49.9988860145467
49.9987509957538
49.9986053938355
49.9984565540059
49.9982885556130
49.9981087445194
49.9979167115520
49.9977120475376
49.9974943433032
49.9972631896756
49.9970181774818
49.9967588975486
49.9964849407028
49.9962155183357
49.9959108455819
49.9955901010110
49.9952528503718
49.9948986594133
49.9945270938844
49.9941377195339
49.9937301021107
49.9933038073638
49.9928584010420
49.9923934488942
49.9919216815966
49.9914157329126
49.9908883894136
49.9903390972186
49.9897672931963
49.9891724049652
49.9885538508935
49.9879110400996
49.9872433724513
49.9865502385665
49.9858240078422
49.9850777367560
49.9843036741592
49.9835010702375
49.9826691576180
49.9818071513690
49.9809142490003
49.9799896304630
49.9790324581497
49.9780418768942
49.9770170139718
49.9760604246596
49.9749642399754
49.9738309877956
49.9726597115747
49.9714494361610
49.9701991677962
49.9689078941154
49.9675745841473
49.9661981883141
49.9647776384314
49.9633118477084
49.9617997107476
49.9602401035451
49.9586318834906
49.9569738893672
49.9552649413515
49.9535038410134
49.9516893713166
49.9498202966180
49.9478953626683
49.9449683556856
49.9429332310077
49.9408499214220
49.9387188083541 ];
%Altitude
alt_descent1 = [
0
0.00396034764708020
0.0159241062374349
0.0360139180911574
0.0643925531312561
0.101090025254052
0.146254621966364
0.199759321470992
0.262188654018246
0.333151727883887
0.412853926070056
0.501525064427369
0.599121879851737
0.705703840632850
0.821315247307211
0.945973591174152
1.07974164112784
1.22261981231441
1.37463464222947
1.53581266836773
1.70379693415271
1.88328144395837
2.07186615782666
2.26954214971465
2.47630049357667
2.69213226336979
2.91702853304741
3.15098037656844
3.39397886788720
3.64601508095893
3.90708008973979
4.16754940449846
4.44644695869465
4.73417896234969
5.03071308064045
5.33601697874747
5.65005832184943
5.97280477512322
6.30422400374846
6.64428367290384
6.99295144776897
7.33220089763199
7.69810250038245
8.07265778268538
8.45585577107613
8.84768549209184
9.24813597226694
9.65719623813857
10.0748553162439
10.5011022331173
10.9359260152960
11.3793156893153
11.8224693239281
12.2834346251830
12.7533654041881
13.2323454098369
13.7204657152670
14.2178247178590
14.7245281392416
15.2406890252851
15.7664277461090
16.3018719960746
16.8532537211540
17.4086308385522
17.9742828265944
18.5504000071342
19.1371827036437
19.7348412412148
20.3435959465605
20.9636771480064
21.5953251755045
22.2387903606195
22.8943330365400
23.5619369419837
24.2422603239993
24.9353284452327
25.6414037542454
26.3607557786936
27.0936611253301
27.8404034800042
28.6012736076609
29.3765693523374
30.1665956371744
30.9716644643995
31.7920949153431
32.6282131504277
33.4803524091722
34.3488530101931
35.2340623511991
36.1363349089997
37.0560322394967
37.9935229776866
38.9491828376649
40.3465964075785
41.3373209459624
42.3421554417855
43.3607296633954
];
kmlStr = ge_plot3(lon_descent1, lat_descent1, alt_descent1,’lineColor’, ‘FFFF0000′,’lineWidth’, 5,’name’, ‘Stage 1 Descent’);
ge_output(‘rocket_trajectory13.kml’, kmlStr);***This is the code. I wrote the parameters as a matrix, but when I upload it to google earth, a straight line appears. Normally it should rise. How can I solve this?
% Assuming stage 1 descent
% latitude
lat_descent1 = [
6
6
6
6
6.00001697808819
6.00001537579460
6.00000819533646
5.99997308778827
5.99993743652977
5.99986643730126
5.99977748747485
5.99967127631096
5.99954042243161
5.99938373713836
5.99919807860050
5.99897890584989
5.99872744189481
5.99843907725965
5.99811116804459
5.99774107034979
5.99730870592835
5.99684630397024
5.99633378813147
5.99576851607858
5.99514784547808
5.99446913399650
5.99372973930037
5.99292701905621
5.99205833093055
5.99112103258991
5.99011248170083
5.98905626627310
5.98789786285266
5.98666076970945
5.98534241293727
5.98394021862993
5.98245161288123
5.98087402178496
5.97920487143495
5.97744158792498
5.97558159734886
5.97373789310211
5.97167615820284
5.96950923763312
5.96723444408868
5.96484909026525
5.96235048885854
5.95973595256429
5.95700279407821
5.95414832609604
5.95116986131349
5.94806471242629
5.94492652765109
5.94155625671142
5.93804789054305
5.93439800833756
5.93060313256953
5.92665972899659
5.92256420665941
5.91831291788169
5.91390215827018
5.90932816671465
5.90454689863020
5.89963276058423
5.89454094174210
5.88926679244302
5.88380555315758
5.87815235448773
5.87230221716680
5.86625005205950
5.85999066016193
5.85351873260155
5.84682885063721
5.84063471984696
5.83349204278013
5.82611432628191
5.81849567515460
5.81063008147944
5.80251142461667
5.79413347120547
5.78548987516401
5.77657417768940
5.76737980725774
5.75790007962409
5.74812819782249
5.73805725216592
5.72768022024636
5.71698996693473
5.70597924438095
5.69464069201386
5.68296683654132
5.67095009195012
5.65858275950603
5.63984071719353
5.62678297994443
5.61342475612478
5.59976883512710
];
% longitude
lon_descent1 = [
50
50
50
50
50.0000021566457
50.0000019531139
50.0000010410146
49.9999964117640
49.9999918695666
49.9999825682685
49.9999707308957
49.9999565505254
49.9999389636032
49.9999177405055
49.9998924374550
49.9998626677352
49.9998280196824
49.9997880927597
49.9997424870414
49.9996908026018
49.9996342138181
49.9995691475952
49.9994967676766
49.9994166653836
49.9993284320374
49.9992316589594
49.9991259374707
49.9990108588927
49.9988860145467
49.9987509957538
49.9986053938355
49.9984565540059
49.9982885556130
49.9981087445194
49.9979167115520
49.9977120475376
49.9974943433032
49.9972631896756
49.9970181774818
49.9967588975486
49.9964849407028
49.9962155183357
49.9959108455819
49.9955901010110
49.9952528503718
49.9948986594133
49.9945270938844
49.9941377195339
49.9937301021107
49.9933038073638
49.9928584010420
49.9923934488942
49.9919216815966
49.9914157329126
49.9908883894136
49.9903390972186
49.9897672931963
49.9891724049652
49.9885538508935
49.9879110400996
49.9872433724513
49.9865502385665
49.9858240078422
49.9850777367560
49.9843036741592
49.9835010702375
49.9826691576180
49.9818071513690
49.9809142490003
49.9799896304630
49.9790324581497
49.9780418768942
49.9770170139718
49.9760604246596
49.9749642399754
49.9738309877956
49.9726597115747
49.9714494361610
49.9701991677962
49.9689078941154
49.9675745841473
49.9661981883141
49.9647776384314
49.9633118477084
49.9617997107476
49.9602401035451
49.9586318834906
49.9569738893672
49.9552649413515
49.9535038410134
49.9516893713166
49.9498202966180
49.9478953626683
49.9449683556856
49.9429332310077
49.9408499214220
49.9387188083541 ];
%Altitude
alt_descent1 = [
0
0.00396034764708020
0.0159241062374349
0.0360139180911574
0.0643925531312561
0.101090025254052
0.146254621966364
0.199759321470992
0.262188654018246
0.333151727883887
0.412853926070056
0.501525064427369
0.599121879851737
0.705703840632850
0.821315247307211
0.945973591174152
1.07974164112784
1.22261981231441
1.37463464222947
1.53581266836773
1.70379693415271
1.88328144395837
2.07186615782666
2.26954214971465
2.47630049357667
2.69213226336979
2.91702853304741
3.15098037656844
3.39397886788720
3.64601508095893
3.90708008973979
4.16754940449846
4.44644695869465
4.73417896234969
5.03071308064045
5.33601697874747
5.65005832184943
5.97280477512322
6.30422400374846
6.64428367290384
6.99295144776897
7.33220089763199
7.69810250038245
8.07265778268538
8.45585577107613
8.84768549209184
9.24813597226694
9.65719623813857
10.0748553162439
10.5011022331173
10.9359260152960
11.3793156893153
11.8224693239281
12.2834346251830
12.7533654041881
13.2323454098369
13.7204657152670
14.2178247178590
14.7245281392416
15.2406890252851
15.7664277461090
16.3018719960746
16.8532537211540
17.4086308385522
17.9742828265944
18.5504000071342
19.1371827036437
19.7348412412148
20.3435959465605
20.9636771480064
21.5953251755045
22.2387903606195
22.8943330365400
23.5619369419837
24.2422603239993
24.9353284452327
25.6414037542454
26.3607557786936
27.0936611253301
27.8404034800042
28.6012736076609
29.3765693523374
30.1665956371744
30.9716644643995
31.7920949153431
32.6282131504277
33.4803524091722
34.3488530101931
35.2340623511991
36.1363349089997
37.0560322394967
37.9935229776866
38.9491828376649
40.3465964075785
41.3373209459624
42.3421554417855
43.3607296633954
];
kmlStr = ge_plot3(lon_descent1, lat_descent1, alt_descent1,’lineColor’, ‘FFFF0000′,’lineWidth’, 5,’name’, ‘Stage 1 Descent’);
ge_output(‘rocket_trajectory13.kml’, kmlStr); ***This is the code. I wrote the parameters as a matrix, but when I upload it to google earth, a straight line appears. Normally it should rise. How can I solve this?
% Assuming stage 1 descent
% latitude
lat_descent1 = [
6
6
6
6
6.00001697808819
6.00001537579460
6.00000819533646
5.99997308778827
5.99993743652977
5.99986643730126
5.99977748747485
5.99967127631096
5.99954042243161
5.99938373713836
5.99919807860050
5.99897890584989
5.99872744189481
5.99843907725965
5.99811116804459
5.99774107034979
5.99730870592835
5.99684630397024
5.99633378813147
5.99576851607858
5.99514784547808
5.99446913399650
5.99372973930037
5.99292701905621
5.99205833093055
5.99112103258991
5.99011248170083
5.98905626627310
5.98789786285266
5.98666076970945
5.98534241293727
5.98394021862993
5.98245161288123
5.98087402178496
5.97920487143495
5.97744158792498
5.97558159734886
5.97373789310211
5.97167615820284
5.96950923763312
5.96723444408868
5.96484909026525
5.96235048885854
5.95973595256429
5.95700279407821
5.95414832609604
5.95116986131349
5.94806471242629
5.94492652765109
5.94155625671142
5.93804789054305
5.93439800833756
5.93060313256953
5.92665972899659
5.92256420665941
5.91831291788169
5.91390215827018
5.90932816671465
5.90454689863020
5.89963276058423
5.89454094174210
5.88926679244302
5.88380555315758
5.87815235448773
5.87230221716680
5.86625005205950
5.85999066016193
5.85351873260155
5.84682885063721
5.84063471984696
5.83349204278013
5.82611432628191
5.81849567515460
5.81063008147944
5.80251142461667
5.79413347120547
5.78548987516401
5.77657417768940
5.76737980725774
5.75790007962409
5.74812819782249
5.73805725216592
5.72768022024636
5.71698996693473
5.70597924438095
5.69464069201386
5.68296683654132
5.67095009195012
5.65858275950603
5.63984071719353
5.62678297994443
5.61342475612478
5.59976883512710
];
% longitude
lon_descent1 = [
50
50
50
50
50.0000021566457
50.0000019531139
50.0000010410146
49.9999964117640
49.9999918695666
49.9999825682685
49.9999707308957
49.9999565505254
49.9999389636032
49.9999177405055
49.9998924374550
49.9998626677352
49.9998280196824
49.9997880927597
49.9997424870414
49.9996908026018
49.9996342138181
49.9995691475952
49.9994967676766
49.9994166653836
49.9993284320374
49.9992316589594
49.9991259374707
49.9990108588927
49.9988860145467
49.9987509957538
49.9986053938355
49.9984565540059
49.9982885556130
49.9981087445194
49.9979167115520
49.9977120475376
49.9974943433032
49.9972631896756
49.9970181774818
49.9967588975486
49.9964849407028
49.9962155183357
49.9959108455819
49.9955901010110
49.9952528503718
49.9948986594133
49.9945270938844
49.9941377195339
49.9937301021107
49.9933038073638
49.9928584010420
49.9923934488942
49.9919216815966
49.9914157329126
49.9908883894136
49.9903390972186
49.9897672931963
49.9891724049652
49.9885538508935
49.9879110400996
49.9872433724513
49.9865502385665
49.9858240078422
49.9850777367560
49.9843036741592
49.9835010702375
49.9826691576180
49.9818071513690
49.9809142490003
49.9799896304630
49.9790324581497
49.9780418768942
49.9770170139718
49.9760604246596
49.9749642399754
49.9738309877956
49.9726597115747
49.9714494361610
49.9701991677962
49.9689078941154
49.9675745841473
49.9661981883141
49.9647776384314
49.9633118477084
49.9617997107476
49.9602401035451
49.9586318834906
49.9569738893672
49.9552649413515
49.9535038410134
49.9516893713166
49.9498202966180
49.9478953626683
49.9449683556856
49.9429332310077
49.9408499214220
49.9387188083541 ];
%Altitude
alt_descent1 = [
0
0.00396034764708020
0.0159241062374349
0.0360139180911574
0.0643925531312561
0.101090025254052
0.146254621966364
0.199759321470992
0.262188654018246
0.333151727883887
0.412853926070056
0.501525064427369
0.599121879851737
0.705703840632850
0.821315247307211
0.945973591174152
1.07974164112784
1.22261981231441
1.37463464222947
1.53581266836773
1.70379693415271
1.88328144395837
2.07186615782666
2.26954214971465
2.47630049357667
2.69213226336979
2.91702853304741
3.15098037656844
3.39397886788720
3.64601508095893
3.90708008973979
4.16754940449846
4.44644695869465
4.73417896234969
5.03071308064045
5.33601697874747
5.65005832184943
5.97280477512322
6.30422400374846
6.64428367290384
6.99295144776897
7.33220089763199
7.69810250038245
8.07265778268538
8.45585577107613
8.84768549209184
9.24813597226694
9.65719623813857
10.0748553162439
10.5011022331173
10.9359260152960
11.3793156893153
11.8224693239281
12.2834346251830
12.7533654041881
13.2323454098369
13.7204657152670
14.2178247178590
14.7245281392416
15.2406890252851
15.7664277461090
16.3018719960746
16.8532537211540
17.4086308385522
17.9742828265944
18.5504000071342
19.1371827036437
19.7348412412148
20.3435959465605
20.9636771480064
21.5953251755045
22.2387903606195
22.8943330365400
23.5619369419837
24.2422603239993
24.9353284452327
25.6414037542454
26.3607557786936
27.0936611253301
27.8404034800042
28.6012736076609
29.3765693523374
30.1665956371744
30.9716644643995
31.7920949153431
32.6282131504277
33.4803524091722
34.3488530101931
35.2340623511991
36.1363349089997
37.0560322394967
37.9935229776866
38.9491828376649
40.3465964075785
41.3373209459624
42.3421554417855
43.3607296633954
];
kmlStr = ge_plot3(lon_descent1, lat_descent1, alt_descent1,’lineColor’, ‘FFFF0000′,’lineWidth’, 5,’name’, ‘Stage 1 Descent’);
ge_output(‘rocket_trajectory13.kml’, kmlStr); kml, kmz, google, earth, simulation, trajectory, path, aerospace MATLAB Answers — New Questions