Skip to content
Snippets Groups Projects
Commit c95c880d authored by Marco Luigi Gaibotti's avatar Marco Luigi Gaibotti
Browse files

[refactoring-ode][functions] Changed state variable to MATLAB standard

parent f641ab59
No related branches found
No related tags found
1 merge request!3Refactoring ODE functions
......@@ -28,14 +28,14 @@ All rights reserved
SPDX-License-Identifier: GPL-3.0-or-later
%}
[~,firstStep] = fun(T(1),Y(1,:),varargin{:});
[~,firstStep] = fun(T(1),Y(:,1),varargin{:});
namesFields = fieldnames(firstStep);
NT = length(T);
steps = cell(NT,1);
for k = 1:NT
[~,steps{k}] = fun(T(k),Y(k,:),varargin{:});
[~,steps{k}] = fun(T(k),Y(:,k),varargin{:});
end
for i = 1:numel(namesFields)
......
......@@ -4,7 +4,6 @@
ode.finalTime = 2000; % [s] Final integration time
ode.optAscent = odeset('Events', @eventApogee, 'InitialStep', 1); % ODE options for ascend
ode.optAscentDelayPara= odeset('InitialStep', 1); % ODE options for due to the opening delay of the parachute
ode.optAscentMultipleAB = odeset('Events', @eventApogee, 'InitialStep', 1); % ODE options for opening of the airbrakes
ode.optParachute = odeset('Events', @eventParaCut); % ODE options for the parachutes
ode.optDescent = odeset('Events', @eventLanding,...
'RelTol', 1e-3, 'AbsTol', 1e-3); % ODE options for ballistic descent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment