Skip to content

Commit 1790115

Browse files
committed
fixed CircularEarthOrbit script
1 parent 5cd3e39 commit 1790115

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

toolbox/+otp/+cr3bp/+presets/CircularEarthOrbit.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
% The radius of the orbit above Earth's surface in km.
1313

1414
p = inputParser();
15-
p.addParameter('OrbitalRadius', 6556, @isnumeric);
15+
p.KeepUnmatched = true;
16+
p.addParameter('OrbitalRadius', 340, @isnumeric);
1617
p.parse(varargin{:});
1718
results = p.Results;
19+
varargin = [fieldnames(p.Unmatched), struct2cell(p.Unmatched)].';
1820

1921
equatorialRadius = 6378;
2022
earthMoonDist = 385000;

0 commit comments

Comments
 (0)