From ac122cfd7e7cac5a31e1633b5773d7fa54136a08 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Fri, 6 Dec 2013 16:01:38 +0100 Subject: [PATCH] write_latex_definitions: use M_ as global (cherry picked from commit ea888fe6464d073367adf6811adff03b17cecd40) --- matlab/write_latex_definitions.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/matlab/write_latex_definitions.m b/matlab/write_latex_definitions.m index e707538cfc..258cff9205 100644 --- a/matlab/write_latex_definitions.m +++ b/matlab/write_latex_definitions.m @@ -1,10 +1,10 @@ -function write_latex_definitions(M_) +function write_latex_definitions %function write_latex_definitions % Writes a latex file containing the variable names, latex names, and % tags/comments % % INPUTS -% M_ +% none % % OUTPUTS % none @@ -29,6 +29,8 @@ function write_latex_definitions(M_) % 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_; + if M_.exo_det_nbr == 0 tables = {'Endogenous', 'Exogenous', 'Parameters'}; M_var_root = {'M_.endo', 'M_.exo', 'M_.param'}; -- GitLab