From 9f5beff89e980e6714b57c004e37271eba2de157 Mon Sep 17 00:00:00 2001
From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Fri, 1 Aug 2008 13:08:13 +0000
Subject: [PATCH] v4 matlab: fixed remaining copyright headers (those files
 which are in the CR+LF endline convention)

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1975 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 matlab/CheckPath.m                            | 20 +++++++++++++---
 matlab/CutSample.m                            | 20 +++++++++++++---
 matlab/DiffuseKalmanSmoother1.m               | 19 ++++++++++++---
 matlab/DiffuseKalmanSmoother1_Z.m             | 19 ++++++++++++---
 matlab/DiffuseLikelihood1.m                   | 20 ++++++++++++----
 matlab/DiffuseLikelihood1_Z.m                 | 20 ++++++++++++----
 matlab/DiffuseLikelihood3.m                   | 20 ++++++++++++----
 matlab/DiffuseLikelihood3_Z.m                 | 20 ++++++++++++----
 matlab/DiffuseLikelihoodH1.m                  | 21 ++++++++++++----
 matlab/DiffuseLikelihoodH1_Z.m                | 20 ++++++++++++----
 matlab/DiffuseLikelihoodH3.m                  | 20 ++++++++++++----
 matlab/DiffuseLikelihoodH3_Z.m                | 20 ++++++++++++----
 matlab/DsgeVarLikelihood.m                    | 21 +++++++++++++---
 matlab/GetAllPosteriorDraws.m                 | 20 +++++++++++++---
 matlab/GetOneDraw.m                           | 20 +++++++++++++---
 matlab/PlotPosteriorDistributions.m           | 20 +++++++++++++---
 matlab/PosteriorFilterSmootherAndForecast.m   | 20 ++++++++++++----
 matlab/ReshapeMatFiles.m                      | 22 +++++++++++++----
 matlab/check.m                                | 19 ++++++++++++---
 matlab/compute_model_moments.m                | 20 +++++++++++++---
 matlab/datatomfile.m                          | 19 ++++++++++++---
 matlab/dynare_estimation.m                    | 19 ++++++++++++---
 matlab/dynare_estimation_init.m               | 19 ++++++++++++---
 matlab/dynare_graph.m                         | 21 ++++++++++++----
 matlab/dynare_graph_init.m                    | 21 ++++++++++++----
 matlab/dynare_resolve.m                       | 19 ++++++++++++---
 matlab/dynare_version.m                       | 20 +++++++++++++---
 matlab/forcst_unc.m                           | 21 ++++++++++++----
 matlab/forecast.m                             | 22 +++++++++++++----
 matlab/get_moments_size.m                     | 20 +++++++++++++---
 matlab/get_variance_of_endogenous_variables.m | 20 +++++++++++++---
 matlab/gmhmaxlik.m                            | 19 ++++++++++++---
 matlab/hessian.m                              | 19 ++++++++++++---
 matlab/hessian_sparse.m                       | 24 ++++++++++++++-----
 matlab/homotopy1.m                            | 20 +++++++++++++---
 matlab/homotopy3.m                            | 21 +++++++++++++---
 matlab/metropolis_draw.m                      | 22 ++++++++++++-----
 matlab/mult_elimination.m                     | 23 ++++++++++++++----
 matlab/my_ordeig.m                            | 20 +++++++++++++---
 matlab/print_info.m                           | 19 ++++++++++++---
 matlab/prior_analysis.m                       | 19 +++++++++++++--
 matlab/prior_posterior_statistics.m           | 20 ++++++++++++----
 matlab/qr2.m                                  | 21 +++++++++++++---
 matlab/ramsey_dynamic.m                       | 19 ++++++++++++---
 matlab/ramsey_static.m                        | 20 +++++++++++++---
 matlab/read_data_.m                           | 21 ++++++++++++----
 matlab/read_variables.m                       | 19 ++++++++++++---
 matlab/save_results.m                         | 20 +++++++++++++---
 matlab/set_all_parameters.m                   | 20 +++++++++++++---
 matlab/set_parameters.m                       | 20 +++++++++++++---
 matlab/th_autocovariances.m                   | 20 +++++++++++++---
 matlab/transition_matrix.m                    | 19 ++++++++++++---
 matlab/uniform_specification.m                | 19 ++++++++++++---
 matlab/var_sample_moments.m                   | 20 +++++++++++++---
 54 files changed, 899 insertions(+), 187 deletions(-)

diff --git a/matlab/CheckPath.m b/matlab/CheckPath.m
index edbe997045..34ce0b5ba4 100644
--- a/matlab/CheckPath.m
+++ b/matlab/CheckPath.m
@@ -11,9 +11,23 @@ function DirectoryName = CheckPath(type)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2005-2007)
-% Gnu Public License.
+
+% Copyright (C) 2005-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_
 
diff --git a/matlab/CutSample.m b/matlab/CutSample.m
index 42eff5cf2d..c5ba1af605 100644
--- a/matlab/CutSample.m
+++ b/matlab/CutSample.m
@@ -11,9 +11,23 @@ function CutSample()
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2005-2007)
-% Gnu Public License.
+
+% Copyright (C) 2005-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ options_ estim_params_
 
diff --git a/matlab/DiffuseKalmanSmoother1.m b/matlab/DiffuseKalmanSmoother1.m
index 967bdf9cf3..4484375505 100644
--- a/matlab/DiffuseKalmanSmoother1.m
+++ b/matlab/DiffuseKalmanSmoother1.m
@@ -26,10 +26,23 @@ function [alphahat,etahat,a, aK] = DiffuseKalmanSmoother1(T,R,Q,Pinf1,Pstar1,Y,t
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % modified by M. Ratto:
 % new output argument aK (1-step to k-step predictions)
diff --git a/matlab/DiffuseKalmanSmoother1_Z.m b/matlab/DiffuseKalmanSmoother1_Z.m
index 36095bed18..f0c880f403 100644
--- a/matlab/DiffuseKalmanSmoother1_Z.m
+++ b/matlab/DiffuseKalmanSmoother1_Z.m
@@ -33,10 +33,23 @@ function [alphahat,etahat,a,P,aK,PK,d,decomp] = DiffuseKalmanSmoother1_Z(T,Z,R,Q
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % modified by M. Ratto:
 % new output argument aK (1-step to k-step predictions)
diff --git a/matlab/DiffuseLikelihood1.m b/matlab/DiffuseLikelihood1.m
index ec37644a8e..88d4a82d0c 100644
--- a/matlab/DiffuseLikelihood1.m
+++ b/matlab/DiffuseLikelihood1.m
@@ -21,11 +21,23 @@ function [LIK, lik] = DiffuseLikelihood1(T,R,Q,Pinf,Pstar,Y,trend,start)
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
-
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % M. Ratto added lik in output
 
diff --git a/matlab/DiffuseLikelihood1_Z.m b/matlab/DiffuseLikelihood1_Z.m
index 525a07428b..5f90ba5a97 100644
--- a/matlab/DiffuseLikelihood1_Z.m
+++ b/matlab/DiffuseLikelihood1_Z.m
@@ -21,11 +21,23 @@ function [LIK, lik] = DiffuseLikelihood1_Z(T,Z,R,Q,Pinf,Pstar,Y,start)
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
-
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % M. Ratto added lik in output
 
diff --git a/matlab/DiffuseLikelihood3.m b/matlab/DiffuseLikelihood3.m
index e4d59a3dbe..7b5da3a954 100644
--- a/matlab/DiffuseLikelihood3.m
+++ b/matlab/DiffuseLikelihood3.m
@@ -23,11 +23,23 @@ function [LIK, lik] = DiffuseLikelihood3(T,R,Q,Pinf,Pstar,Y,trend,start)%//Z,T,R
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
-
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % M. Ratto added lik in output [October 2005]
 % changes by M. Ratto [April 2005]
diff --git a/matlab/DiffuseLikelihood3_Z.m b/matlab/DiffuseLikelihood3_Z.m
index 7cfd629ce9..46f09c210c 100644
--- a/matlab/DiffuseLikelihood3_Z.m
+++ b/matlab/DiffuseLikelihood3_Z.m
@@ -23,11 +23,23 @@ function [LIK, lik] = DiffuseLikelihood3_Z(T,Z,R,Q,Pinf,Pstar,Y,start)
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
-
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % M. Ratto added lik in output [October 2005]
 % changes by M. Ratto [April 2005]
diff --git a/matlab/DiffuseLikelihoodH1.m b/matlab/DiffuseLikelihoodH1.m
index 58d0174b5d..1b7bb51fa6 100644
--- a/matlab/DiffuseLikelihoodH1.m
+++ b/matlab/DiffuseLikelihoodH1.m
@@ -22,12 +22,23 @@ function [LIK, lik] = DiffuseLikelihoodH1(T,R,Q,H,Pinf,Pstar,Y,trend,start)
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2005-2008)
-% Gnu Public License.
-
-
 
+% Copyright (C) 2005-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % M. Ratto added lik in output
 
diff --git a/matlab/DiffuseLikelihoodH1_Z.m b/matlab/DiffuseLikelihoodH1_Z.m
index 160a91710d..847ce823a8 100644
--- a/matlab/DiffuseLikelihoodH1_Z.m
+++ b/matlab/DiffuseLikelihoodH1_Z.m
@@ -23,11 +23,23 @@ function [LIK, lik] = DiffuseLikelihood1_Z(T,Z,R,Q,Pinf,Pstar,Y,start)
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
-
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % M. Ratto added lik in output
 
diff --git a/matlab/DiffuseLikelihoodH3.m b/matlab/DiffuseLikelihoodH3.m
index 11f000320d..090ccc3031 100644
--- a/matlab/DiffuseLikelihoodH3.m
+++ b/matlab/DiffuseLikelihoodH3.m
@@ -24,11 +24,23 @@ function [LIK, lik] = DiffuseLikelihoodH3(T,R,Q,H,Pinf,Pstar,Y,trend,start)
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2005-2008)
-% Gnu Public License.
-
 
+% Copyright (C) 2005-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % M. Ratto added lik in output [October 2005]
 % changes by M. Ratto
diff --git a/matlab/DiffuseLikelihoodH3_Z.m b/matlab/DiffuseLikelihoodH3_Z.m
index d595daf55f..9f64294144 100644
--- a/matlab/DiffuseLikelihoodH3_Z.m
+++ b/matlab/DiffuseLikelihoodH3_Z.m
@@ -24,11 +24,23 @@ function [LIK, lik] = DiffuseLikelihoodH3_Z(T,Z,R,Q,H,Pinf,Pstar,Y,start)
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
-
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % M. Ratto added lik in output [October 2005]
 % changes by M. Ratto [April 2005]
diff --git a/matlab/DsgeVarLikelihood.m b/matlab/DsgeVarLikelihood.m
index a524938461..bff61250a5 100644
--- a/matlab/DsgeVarLikelihood.m
+++ b/matlab/DsgeVarLikelihood.m
@@ -17,9 +17,24 @@ function [fval,cost_flag,info,PHI,SIGMAu,iXX,prior] = DsgeVarLikelihood(xparam1,
 %
 % SPECIAL REQUIREMENTS
 %   None.
-%  
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
 global bayestopt_ estim_params_ M_ options_
 
 nvx = estim_params_.nvx;
diff --git a/matlab/GetAllPosteriorDraws.m b/matlab/GetAllPosteriorDraws.m
index d85a914ebd..4d0f27ead3 100644
--- a/matlab/GetAllPosteriorDraws.m
+++ b/matlab/GetAllPosteriorDraws.m
@@ -15,9 +15,23 @@ function Draws = GetAllPosteriorDraws(column,FirstMhFile,FirstLine,TotalNumberOf
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2005-2008)
-% Gnu Public License.
+
+% Copyright (C) 2005-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/GetOneDraw.m b/matlab/GetOneDraw.m
index 36c33b9e95..199dd08923 100644
--- a/matlab/GetOneDraw.m
+++ b/matlab/GetOneDraw.m
@@ -13,9 +13,23 @@ function [xparams, logpost] = GetOneDraw(type)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2005-2008)
-% Gnu Public License.
+
+% Copyright (C) 2005-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   switch type
    case 'posterior'
diff --git a/matlab/PlotPosteriorDistributions.m b/matlab/PlotPosteriorDistributions.m
index 5bd5c27bbd..a7f68ad9d2 100644
--- a/matlab/PlotPosteriorDistributions.m
+++ b/matlab/PlotPosteriorDistributions.m
@@ -11,9 +11,23 @@ function PlotPosteriorDistributions()
 %    
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2005-2008)
-% Gnu Public License.
+
+% Copyright (C) 2005-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global estim_params_ M_ options_ bayestopt_ oo_
 
diff --git a/matlab/PosteriorFilterSmootherAndForecast.m b/matlab/PosteriorFilterSmootherAndForecast.m
index 512fc19920..8815b57998 100644
--- a/matlab/PosteriorFilterSmootherAndForecast.m
+++ b/matlab/PosteriorFilterSmootherAndForecast.m
@@ -15,11 +15,23 @@ function PosteriorFilterSmootherAndForecast(Y,gend, type)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2005-2008)
-% Gnu Public License.
-
 
+% Copyright (C) 2005-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global options_ estim_params_ oo_ M_ bayestopt_
 
diff --git a/matlab/ReshapeMatFiles.m b/matlab/ReshapeMatFiles.m
index d5f0f9ccb7..de33a7ac9c 100644
--- a/matlab/ReshapeMatFiles.m
+++ b/matlab/ReshapeMatFiles.m
@@ -1,5 +1,4 @@
 function ReshapeMatFiles(type, type2)
-
 % function ReshapeMatFiles(type, type2)
 % Reshapes and sorts (along the mcmc simulations) the mat files generated by DYNARE.
 % 4D-arrays are splitted along the first dimension.
@@ -25,11 +24,24 @@ function ReshapeMatFiles(type, type2)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
 
-  
+% Copyright (C) 2003-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
   global M_ options_
 
 if nargin==1, 
diff --git a/matlab/check.m b/matlab/check.m
index ccb0875305..deb569d0b4 100644
--- a/matlab/check.m
+++ b/matlab/check.m
@@ -12,10 +12,23 @@ function result = check
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
 
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 global it_
diff --git a/matlab/compute_model_moments.m b/matlab/compute_model_moments.m
index c8b551bd9d..5b09d82de8 100644
--- a/matlab/compute_model_moments.m
+++ b/matlab/compute_model_moments.m
@@ -10,8 +10,22 @@ function moments=compute_model_moments(dr,M_,options,_)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
     moments = th_autocovariances(dr,options_.varlist,M_,options_);
diff --git a/matlab/datatomfile.m b/matlab/datatomfile.m
index 34af50e8f1..e968896abf 100644
--- a/matlab/datatomfile.m
+++ b/matlab/datatomfile.m
@@ -13,10 +13,23 @@ function datatomfile (s,var_list)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
 
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/dynare_estimation.m b/matlab/dynare_estimation.m
index 57c04554db..b80722f099 100644
--- a/matlab/dynare_estimation.m
+++ b/matlab/dynare_estimation.m
@@ -10,10 +10,23 @@ function dynare_estimation(var_list_)
 %
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
 
+% Copyright (C) 2003-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ options_ oo_ estim_params_ 
 global bayestopt_
diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m
index 33b76b345c..7f4ea2e2b1 100644
--- a/matlab/dynare_estimation_init.m
+++ b/matlab/dynare_estimation_init.m
@@ -13,10 +13,23 @@ function [data,rawdata]=dynare_estimation_init(var_list_, igsa)
 %
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
 
+% Copyright (C) 2003-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ options_ oo_ estim_params_ 
 global bayestopt_ dsge_prior_weight
diff --git a/matlab/dynare_graph.m b/matlab/dynare_graph.m
index bd671a4f70..450e26b0d2 100644
--- a/matlab/dynare_graph.m
+++ b/matlab/dynare_graph.m
@@ -1,5 +1,4 @@
 function dynare_graph(y,tit,x)
-
 % function dynare_graph(y,tit,x) 
 % graphs
 %
@@ -12,9 +11,23 @@ function dynare_graph(y,tit,x)
 %
 % SPECIAL REQUIREMENT
 %   none
-%    
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global dyn_graph
 
diff --git a/matlab/dynare_graph_init.m b/matlab/dynare_graph_init.m
index 0906203fbc..eb272fd7e6 100644
--- a/matlab/dynare_graph_init.m
+++ b/matlab/dynare_graph_init.m
@@ -1,5 +1,4 @@
 function dynare_graph_init(figure_name,nplot,line_types,line_width)
-
 % function dynare_graph_init(figure_name,colors) 
 % initializes set of graphs
 %
@@ -12,9 +11,23 @@ function dynare_graph_init(figure_name,nplot,line_types,line_width)
 %
 % SPECIAL REQUIREMENT
 %   none
-%    
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global dyn_graph options_
   
diff --git a/matlab/dynare_resolve.m b/matlab/dynare_resolve.m
index abd9586d1e..af6a5c7bd1 100644
--- a/matlab/dynare_resolve.m
+++ b/matlab/dynare_resolve.m
@@ -24,10 +24,23 @@ function [A,B,ys,info] = dynare_resolve(iv,ic,aux)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
 
+% Copyright (C) 2003-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global oo_ M_
   
diff --git a/matlab/dynare_version.m b/matlab/dynare_version.m
index 376d21e437..e6990d3b99 100644
--- a/matlab/dynare_version.m
+++ b/matlab/dynare_version.m
@@ -11,8 +11,22 @@ function dynare_version
 %        
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2008)
-% Gnu Public License.
+
+% Copyright (C) 2001-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
     return '4-Prerelease'
diff --git a/matlab/forcst_unc.m b/matlab/forcst_unc.m
index ec49fca84e..417cb0c7d0 100644
--- a/matlab/forcst_unc.m
+++ b/matlab/forcst_unc.m
@@ -1,5 +1,4 @@
 function forcst_unc(y0,var_list)
-
 % function [mean,intval1,intval2]=forcst_unc(y0,var_list)
 % computes forecasts with parameter uncertainty
 %
@@ -15,9 +14,23 @@ function forcst_unc(y0,var_list)
 %
 % SPECIAL REQUIREMENTS
 %   None.
-%    
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ options_ oo_ estim_params_ bayestopt_
   
diff --git a/matlab/forecast.m b/matlab/forecast.m
index 2daf0f02d6..65c7003e62 100644
--- a/matlab/forecast.m
+++ b/matlab/forecast.m
@@ -16,10 +16,24 @@ function info = forecast(var_list,task)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
-    
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
     global options_ dr_ oo_ M_
     
     info = 0;
diff --git a/matlab/get_moments_size.m b/matlab/get_moments_size.m
index eae42c5ca4..d65fc063f7 100644
--- a/matlab/get_moments_size.m
+++ b/matlab/get_moments_size.m
@@ -10,9 +10,23 @@ function s=get_moments_size(options)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
     global M_
     
diff --git a/matlab/get_variance_of_endogenous_variables.m b/matlab/get_variance_of_endogenous_variables.m
index cafc99ee2f..7d509aaa22 100644
--- a/matlab/get_variance_of_endogenous_variables.m
+++ b/matlab/get_variance_of_endogenous_variables.m
@@ -14,9 +14,23 @@ function [vx1,i_ns] = get_variance_of_endogenous_variables(dr,i_var)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ options_
   
diff --git a/matlab/gmhmaxlik.m b/matlab/gmhmaxlik.m
index 190426a5b4..6891aea347 100644
--- a/matlab/gmhmaxlik.m
+++ b/matlab/gmhmaxlik.m
@@ -58,10 +58,23 @@ function [PostMod,PostVar,Scale,PostMean] = ...
 %
 % SPECIAL REQUIREMENTS
 %   None.
-%  
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
 
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global bayestopt_ estim_params_ options_
 global dsge_prior_weight % Needed if a BVAR-DSGE model is estimated.
diff --git a/matlab/hessian.m b/matlab/hessian.m
index 9f79e4db8e..ea579ad98e 100644
--- a/matlab/hessian.m
+++ b/matlab/hessian.m
@@ -17,10 +17,23 @@ function hessian_mat = hessian(func,x,varargin)
 % SPECIAL REQUIREMENTS
 %    none
 %  
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
 
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global options_
   func = str2func(func);
diff --git a/matlab/hessian_sparse.m b/matlab/hessian_sparse.m
index 66bb4ebd21..3dc667f0d9 100644
--- a/matlab/hessian_sparse.m
+++ b/matlab/hessian_sparse.m
@@ -1,4 +1,4 @@
-
+function hessian_mat = hessian_sparse(func,x,varargin)
 % function hessian_mat = hessian_sparse(func,x,varargin)
 % Computes second order partial derivatives
 % used the 7 points formula
@@ -16,13 +16,25 @@
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
+
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 %% computes second order partial derivatives
 % uses Abramowitz and Stegun (1965) formulas 25.3.24 and 25.3.27 p. 884
-function hessian_mat = hessian_sparse(func,x,varargin)
 global options_func = str2func(func);n=size(x,1);
 %h1=max(abs(x),options_.gstep*ones(n,1))*eps^(1/3);h1=max(abs(x),sqrt(options_.gstep)*ones(n,1))*eps^(1/6);h_1=h1;xh1=x+h1;h1=xh1-x;xh1=x-h_1;h_1=x-xh1;xh1=x;f0=feval(func,x,varargin{:});nf = size(f0,1);f1=zeros(nf,n);f_1=f1;for i=1:n    xh1(i)=x(i)+h1(i);    f1(:,i)=feval(func,xh1,varargin{:});    xh1(i)=x(i)-h_1(i);    f_1(:,i)=feval(func,xh1,varargin{:});    xh1(i)=x(i);    i=i+1;endxh_1=xh1;hessian_mat = spalloc(nf,n*n,3*nf*n);for i=1:n    if i > 1        k=[i:n:n*(i-1)];        hessian_mat(:,(i-1)*n+1:(i-1)*n+i-1)=hessian_mat(:,k);    end     hessian_mat(:,(i-1)*n+i)=sparse((f1(:,i)+f_1(:,i)-2*f0)./(h1(i)*h_1(i)));    temp=f1+f_1-f0*ones(1,n);        for j=i+1:n        xh1(i)=x(i)+h1(i);        xh1(j)=x(j)+h_1(j);        xh_1(i)=x(i)-h1(i);        xh_1(j)=x(j)-h_1(j);        hessian_mat(:,(i-1)*n+j)=sparse(-(-feval(func,xh1,varargin{:})-feval(func,xh_1,varargin{:})+temp(:,i)+temp(:,j))./(2*h1(i)*h_1(j)));        xh1(i)=x(i);        xh1(j)=x(j);        xh_1(i)=x(i);        xh_1(j)=x(j);        j=j+1;    end    i=i+1;end% 10/03/02 MJ used the 7 points formula
\ No newline at end of file
diff --git a/matlab/homotopy1.m b/matlab/homotopy1.m
index fe26bb9b15..bc6472c5cf 100644
--- a/matlab/homotopy1.m
+++ b/matlab/homotopy1.m
@@ -22,9 +22,23 @@ function homotopy1(values, step_nbr)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ oo_ options_
 
diff --git a/matlab/homotopy3.m b/matlab/homotopy3.m
index d94b55c9c1..dda3dfb289 100644
--- a/matlab/homotopy3.m
+++ b/matlab/homotopy3.m
@@ -24,9 +24,24 @@ function homotopy3(values, step_nbr)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
   global M_ oo_ options_
   
   tol = 1e-8;
diff --git a/matlab/metropolis_draw.m b/matlab/metropolis_draw.m
index 05ea726b58..1fd32dded6 100644
--- a/matlab/metropolis_draw.m
+++ b/matlab/metropolis_draw.m
@@ -1,5 +1,4 @@
 function [xparams, logpost]=metropolis_draw(init)
-
 % function [xparams, logpost]=metropolis_draw(init) 
 % Builds draws from metropolis
 %
@@ -12,12 +11,23 @@ function [xparams, logpost]=metropolis_draw(init)
 %   
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
-  
-
 
+% Copyright (C) 2003-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global options_ estim_params_ M_
   persistent mh_nblck NumberOfDraws fname FirstLine FirstMhFile MAX_nruns
diff --git a/matlab/mult_elimination.m b/matlab/mult_elimination.m
index f4d3fcd194..c9e20d8677 100644
--- a/matlab/mult_elimination.m
+++ b/matlab/mult_elimination.m
@@ -1,5 +1,4 @@
 function dr=mult_elimination(void)
-
 % function mult_elimination()
 % replaces Lagrange multipliers in Ramsey policy by lagged value of state
 % and shock variables
@@ -12,10 +11,24 @@ function dr=mult_elimination(void)
 %
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
-  
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
   global M_ options_ oo_
 
   dr = oo_.dr;
diff --git a/matlab/my_ordeig.m b/matlab/my_ordeig.m
index fe8cddc707..be9c515e29 100644
--- a/matlab/my_ordeig.m
+++ b/matlab/my_ordeig.m
@@ -10,9 +10,23 @@ function eigs = my_ordeig(t)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   n = size(t,2);
   eigs = zeros(n,1);
diff --git a/matlab/print_info.m b/matlab/print_info.m
index 9018f49a3d..2c2b2b9cd6 100644
--- a/matlab/print_info.m
+++ b/matlab/print_info.m
@@ -18,10 +18,23 @@ function print_info(info)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2005-2007)
-% Gnu Public License.
 
+% Copyright (C) 2005-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global options_
 
diff --git a/matlab/prior_analysis.m b/matlab/prior_analysis.m
index 350c4c3dea..e60ab66236 100644
--- a/matlab/prior_analysis.m
+++ b/matlab/prior_analysis.m
@@ -13,8 +13,23 @@ function prior_analysis(var_list)
 % SPECIAL REQUIREMENTS
 %   none.
 %    
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ options_ oo_ estim_params_ bayestopt_
 
diff --git a/matlab/prior_posterior_statistics.m b/matlab/prior_posterior_statistics.m
index fefa1abfde..a8d71729ff 100644
--- a/matlab/prior_posterior_statistics.m
+++ b/matlab/prior_posterior_statistics.m
@@ -15,11 +15,23 @@ function prior_posterior_statistics(type,Y,gend)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2005-2008)
-% Gnu Public License.
-
 
+% Copyright (C) 2005-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global options_ estim_params_ oo_ M_ bayestopt_
 
diff --git a/matlab/qr2.m b/matlab/qr2.m
index 82cb5a82a2..714da06c43 100644
--- a/matlab/qr2.m
+++ b/matlab/qr2.m
@@ -16,9 +16,24 @@ function [Q,R] = qr2(X)
 %
 % SPECIAL REQUIREMENTS
 %   None.
-%  
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
 [Q,R] = qr(X);
 indx = find(diag(R)<0);
 if ~isempty(indx)
diff --git a/matlab/ramsey_dynamic.m b/matlab/ramsey_dynamic.m
index 269d562169..5dcb3df17f 100644
--- a/matlab/ramsey_dynamic.m
+++ b/matlab/ramsey_dynamic.m
@@ -13,10 +13,23 @@ function [J,M_] = ramsey_dynamic(ys,lbar,M_,options_,oo_,it_)
 %  
 % SPECIAL REQUIREMENTS
 %     none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
 
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   % retrieving model parameters
   endo_nbr = M_.endo_nbr;
diff --git a/matlab/ramsey_static.m b/matlab/ramsey_static.m
index 3b821cd228..5a02f723f6 100644
--- a/matlab/ramsey_static.m
+++ b/matlab/ramsey_static.m
@@ -13,9 +13,23 @@ function [resids, rJ,mult] = ramsey_static(x,M_,options_,oo_,it_)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
+
+% Copyright (C) 2003-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   
   % recovering usefull fields
diff --git a/matlab/read_data_.m b/matlab/read_data_.m
index 266445fa7a..137df4c964 100644
--- a/matlab/read_data_.m
+++ b/matlab/read_data_.m
@@ -1,5 +1,4 @@
 function read_data_
-
 % function read_data_
 % reads endogenous and exogenous variables from a text file 
 % Used by datafile option in simulate
@@ -12,9 +11,23 @@ function read_data_
 %
 % SPECIAL REQUIREMENT
 %   none
-%    
-% part of DYNARE, copyright Dynare Team (2007-2008)
-% Gnu Public License.
+
+% Copyright (C) 2007-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global options_ M_ oo_;
   dname= options_.datafile;
diff --git a/matlab/read_variables.m b/matlab/read_variables.m
index 8cafb92a30..070c8ec945 100644
--- a/matlab/read_variables.m
+++ b/matlab/read_variables.m
@@ -16,10 +16,23 @@ function dyn_data_01=read_variables(file_name_01,var_names_01,dyn_data_01,xls_sh
 % SPECIAL REQUIREMENTS
 % all local variables have complicated names in order to avoid name
 % conflicts with possible user variable names
-%  
-% part of DYNARE, copyright Dynare Team (2005-2007)
-% Gnu Public License.
 
+% Copyright (C) 2005-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   dyn_size_01 = size(dyn_data_01,1);
   var_size_01 = size(var_names_01,1);
diff --git a/matlab/save_results.m b/matlab/save_results.m
index 473bc16e4b..e2f4a584c6 100644
--- a/matlab/save_results.m
+++ b/matlab/save_results.m
@@ -13,9 +13,23 @@ function save_results(x,s_name,names)
 %
 % SPECIAL REQUIREMENT
 %   none
-%    
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global oo_
   
diff --git a/matlab/set_all_parameters.m b/matlab/set_all_parameters.m
index 7e67ca26a4..b57ce77808 100644
--- a/matlab/set_all_parameters.m
+++ b/matlab/set_all_parameters.m
@@ -11,9 +11,23 @@ function set_all_parameters(xparam1)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global estim_params_ M_
   
diff --git a/matlab/set_parameters.m b/matlab/set_parameters.m
index b87c8a09d6..d66c236d55 100644
--- a/matlab/set_parameters.m
+++ b/matlab/set_parameters.m
@@ -13,9 +13,23 @@ function set_parameters(xparam1)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global estim_params_ M_
   
diff --git a/matlab/th_autocovariances.m b/matlab/th_autocovariances.m
index 86a9c5d7e3..a5c3bdc896 100644
--- a/matlab/th_autocovariances.m
+++ b/matlab/th_autocovariances.m
@@ -15,9 +15,23 @@ function [Gamma_y,ivar]=th_autocovariances(dr,ivar,M_,options_)
 %
 % SPECIAL REQUIREMENTS
 %   Theoretical HP filtering is available as an option
-%  
-% part of DYNARE, copyright Dynare Team (2001-2008)
-% Gnu Public License.
+
+% Copyright (C) 2001-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   exo_names_orig_ord  = M_.exo_names_orig_ord;
   if exist('OCTAVE_VERSION')
diff --git a/matlab/transition_matrix.m b/matlab/transition_matrix.m
index d3fee2dab4..2a2895ffcb 100644
--- a/matlab/transition_matrix.m
+++ b/matlab/transition_matrix.m
@@ -12,10 +12,23 @@ function [A,B] = transition_matrix(dr)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
 
+% Copyright (C) 2003-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_
   exo_nbr = M_.exo_nbr;
diff --git a/matlab/uniform_specification.m b/matlab/uniform_specification.m
index b857b6bbef..9d09b7bd5f 100644
--- a/matlab/uniform_specification.m
+++ b/matlab/uniform_specification.m
@@ -17,10 +17,23 @@ function [m,s,p1,p2] = uniform_specification(m,s,p3,p4)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
     if ~(isnan(p3) | isnan(p4))
       p1 = p3;
diff --git a/matlab/var_sample_moments.m b/matlab/var_sample_moments.m
index e5abe6ab63..98872db916 100644
--- a/matlab/var_sample_moments.m
+++ b/matlab/var_sample_moments.m
@@ -50,9 +50,23 @@ function [YtY,XtY,YtX,XtX,Y,X] = ...
 %
 % SPECIAL REQUIREMENTS
 %   None.
-%  
-% part of DYNARE, copyright Dynare Team (2007)
-% Gnu Public License.
+
+% Copyright (C) 2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 X = [];
 Y = [];
-- 
GitLab