Skip to content

Commit

Permalink
Update prob_obs_test.m
Browse files Browse the repository at this point in the history
Changed lines 151-153, so that it creates xw and fw even if nw = 0. This fix prevents an error in line 163, which would otherwise appear since the code expects these variables (xw, fw) to exist.
  • Loading branch information
afvillaverde authored Oct 20, 2022
1 parent e31be81 commit 51c454d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions STRIKE-GOLDD/functions/prob_obs_test.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ function prob_obs_test(modelname,opts,prev_ident_pars,nmf)
xw = [x;wlvector];
fw = [f;wlvector_dot];
n = numel(xw);
else
xw = x; fw = f;
end



%==========================================================================
% Assignment of the prime numer used by the method:
Myprime = nextprime(10^6);
Expand Down

0 comments on commit 51c454d

Please sign in to comment.