Skip to content
Snippets Groups Projects
Commit db272f11 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Compatibility fixes for MATLAB <= 7.7.

The tilde syntax was introduced in MATLAB 7.8.
parent f86b91d3
No related branches found
No related tags found
No related merge requests found
...@@ -392,7 +392,7 @@ while (k < kmax) && (Psix > eps2) ...@@ -392,7 +392,7 @@ while (k < kmax) && (Psix > eps2)
Fx = Fxnew; Fx = Fxnew;
Phix = Phixnew; Phix = Phixnew;
Psix = Psixnew; Psix = Psixnew;
[~,DFx] = feval(FUN,x,varargin{:}); [junk,DFx] = feval(FUN,x,varargin{:});
DPhix = DPhi(x,Fx,DFx,lb,ub,lambda1,lambda2,n,Indexset); DPhix = DPhi(x,Fx,DFx,lb,ub,lambda1,lambda2,n,Indexset);
DPsix = DPhix'*Phix; DPsix = DPhix'*Phix;
normDPsix = norm(DPsix); normDPsix = norm(DPsix);
......
...@@ -75,9 +75,9 @@ else ...@@ -75,9 +75,9 @@ else
yT = y(:,periods+2); yT = y(:,periods+2);
z = y(:,2:periods+1); z = y(:,2:periods+1);
illi = M_.lead_lag_incidence'; illi = M_.lead_lag_incidence';
[i_cols,~,i_cols_j] = find(illi(:)); [i_cols,junk,i_cols_j] = find(illi(:));
illi = illi(:,2:3); illi = illi(:,2:3);
[i_cols_J1,~,i_cols_1] = find(illi(:)); [i_cols_J1,junk,i_cols_1] = find(illi(:));
i_cols_T = nonzeros(M_.lead_lag_incidence(1:2,:)'); i_cols_T = nonzeros(M_.lead_lag_incidence(1:2,:)');
[y,info] = dynare_solve(@perfect_foresight_problem,z(:),1, ... [y,info] = dynare_solve(@perfect_foresight_problem,z(:),1, ...
str2func([M_.fname '_dynamic']),y0,yT, ... str2func([M_.fname '_dynamic']),y0,yT, ...
...@@ -109,9 +109,9 @@ if nargout>1 ...@@ -109,9 +109,9 @@ if nargout>1
yy = oo_.endo_simul(:,2:options_.periods+1); yy = oo_.endo_simul(:,2:options_.periods+1);
if ~exist('illi') if ~exist('illi')
illi = M_.lead_lag_incidence'; illi = M_.lead_lag_incidence';
[i_cols,~,i_cols_j] = find(illi(:)); [i_cols,junk,i_cols_j] = find(illi(:));
illi = illi(:,2:3); illi = illi(:,2:3);
[i_cols_J1,~,i_cols_1] = find(illi(:)); [i_cols_J1,junk,i_cols_1] = find(illi(:));
i_cols_T = nonzeros(M_.lead_lag_incidence(1:2,:)'); i_cols_T = nonzeros(M_.lead_lag_incidence(1:2,:)');
end end
if options_.block && ~options_.bytecode if options_.block && ~options_.bytecode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment