write_latex_definitions: use M_ as global

time-shift
Houtan Bastani 2013-12-06 16:01:38 +01:00
parent f70ebea94c
commit ea888fe646
1 changed files with 4 additions and 2 deletions

View File

@ -1,10 +1,10 @@
function write_latex_definitions(M_) function write_latex_definitions
%function write_latex_definitions %function write_latex_definitions
% Writes a latex file containing the variable names, latex names, and % Writes a latex file containing the variable names, latex names, and
% tags/comments % tags/comments
% %
% INPUTS % INPUTS
% M_ % none
% %
% OUTPUTS % OUTPUTS
% none % none
@ -29,6 +29,8 @@ function write_latex_definitions(M_)
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
global M_;
if M_.exo_det_nbr == 0 if M_.exo_det_nbr == 0
tables = {'Endogenous', 'Exogenous', 'Parameters'}; tables = {'Endogenous', 'Exogenous', 'Parameters'};
M_var_root = {'M_.endo', 'M_.exo', 'M_.param'}; M_var_root = {'M_.endo', 'M_.exo', 'M_.param'};