Skip to content
Snippets Groups Projects
Commit c366a8c3 authored by MichelJuillard's avatar MichelJuillard
Browse files

fix bugs

parent c2e43c00
Branches
Tags
No related merge requests found
...@@ -197,7 +197,7 @@ end ...@@ -197,7 +197,7 @@ end
if ~first_obs_ispresent if ~first_obs_ispresent
if isfield(options, 'first_simulation_period') if isfield(options, 'first_simulation_period')
if options.first_simulation_period < options.maximum_lag if options.first_simulation_period < M.orig_maximum_lag
error(sprintf([caller, '_FILE: first_simulation_period = %d', ... error(sprintf([caller, '_FILE: first_simulation_period = %d', ...
'must be larger than the maximum lag (%d)'], ... 'must be larger than the maximum lag (%d)'], ...
options.first_simulation_period, M.orig_maximum_lag)) options.first_simulation_period, M.orig_maximum_lag))
...@@ -250,7 +250,7 @@ elseif isfield(options, 'lastobs') ...@@ -250,7 +250,7 @@ elseif isfield(options, 'lastobs')
' inconsistent information. Use only two of these', ... ' inconsistent information. Use only two of these', ...
' options.']) ' options.'])
else else
last_obs = options.last_obs; last_obs = options.lastobs;
end end
else else
last_obs = options.last_obs; last_obs = options.last_obs;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment