Skip to content

Commit d8903c7

Browse files
committed
replaced struct2array, updated function headers
1 parent db9c33d commit d8903c7

6 files changed

Lines changed: 9 additions & 8 deletions

File tree

EXAMPLES.mlx

-37.4 KB
Binary file not shown.
10 Bytes
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Sets the plot background for drawing celestial bodies in 3D.
7272
# Examples and Additional Documentation
7373

7474
- See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.
75-
- See [Visualizing Celestial Bodies in 3D.pdf](https://tamaskis.github.io/documentation/Visualizing_Celestial_Bodies_in_3D.pdf) (also included with download) for additional documentation.
75+
- See [Visualizing Celestial Bodies in 3D.pdf](https://tamaskis.github.io/files/Visualizing_Celestial_Bodies_in_3D.pdf) (also included with download) for additional documentation.
7676

7777

7878

0 Bytes
Binary file not shown.

planet3D/background.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
% See also planet3D, ground_track.
88
%
99
% Copyright © 2021 Tamas Kis
10-
% Last Update: 2022-04-20
10+
% Last Update: 2022-07-06
1111
% Website: https://tamaskis.github.io
1212
% Contact: tamas.a.kis@outlook.com
1313
%
1414
% TECHNICAL DOCUMENTATION:
15-
% https://tamaskis.github.io/documentation/Visualizing_Celestial_Bodies_in_3D.pdf
15+
% https://tamaskis.github.io/files/Visualizing_Celestial_Bodies_in_3D.pdf
1616
%
1717
%--------------------------------------------------------------------------
1818
%

planet3D/planet3D.m

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@
1111
% See also background, ground_track.
1212
%
1313
% Copyright © 2021 Tamas Kis
14-
% Last Update: 2022-04-20
14+
% Last Update: 2022-07-06
1515
% Website: https://tamaskis.github.io
1616
% Contact: tamas.a.kis@outlook.com
1717
%
1818
% TECHNICAL DOCUMENTATION:
19-
% https://tamaskis.github.io/documentation/Visualizing_Celestial_Bodies_in_3D.pdf
19+
% https://tamaskis.github.io/files/Visualizing_Celestial_Bodies_in_3D.pdf
2020
%
2121
%--------------------------------------------------------------------------
2222
%
2323
% ------
2424
% INPUT:
2525
% ------
26-
% planet - (char) (OPTIONAL) 'Sun', 'Moon', 'Mercury', 'Venus',
26+
% planet - (OPTIONAL) (char) 'Sun', 'Moon', 'Mercury', 'Venus',
2727
% 'Earth', 'Earth Cloudy', 'Earth Coastlines',
2828
% 'Earth Night', 'Earth Night Cloudy', 'Mars',
2929
% 'Jupiter', 'Saturn', 'Uranus', 'Neptune', or 'Pluto'
3030
% (defaults to 'Earth Cloudy')
31-
% opts - (1×1 struct) (OPTIONAL) plot options
31+
% opts - (OPTIONAL) (1×1 struct) plot options
3232
% • Clipping - (char) 'on' or 'off' (defaults to 'off')
3333
% --> if 'on', the surface will be "clipped" to fit
3434
% the axes when zooming in
@@ -230,7 +230,8 @@
230230
'FaceAlpha',FaceAlpha);
231231

232232
% loads coastline data
233-
coastlines_data = struct2array(load('coastlines_data'));
233+
coastlines_data = struct2cell(load('coastlines_data'));
234+
coastlines_data = [coastlines_data{:}];
234235

235236
% extracts ECEF coordinates of coastlines
236237
x_coast = coastlines_data.X;

0 commit comments

Comments
 (0)