2015-12-15 17:53:13 +01:00
|
|
|
function [endogenousvariables, info] = sim1(endogenousvariables, exogenousvariables, steadystate, M, options)
|
|
|
|
|
|
|
|
% Performs deterministic simulations with lead or lag on one period. Uses sparse matrices.
|
2006-10-29 18:27:48 +01:00
|
|
|
%
|
|
|
|
% INPUTS
|
2016-07-05 19:41:24 +02:00
|
|
|
% - endogenousvariables [double] N*T array, paths for the endogenous variables (initial guess).
|
|
|
|
% - exogenousvariables [double] T*M array, paths for the exogenous variables.
|
|
|
|
% - steadystate [double] N*1 array, steady state for the endogenous variables.
|
|
|
|
% - M [struct] contains a description of the model.
|
|
|
|
% - options [struct] contains various options.
|
2006-10-29 18:27:48 +01:00
|
|
|
% OUTPUTS
|
2016-07-05 19:41:24 +02:00
|
|
|
% - endogenousvariables [double] N*T array, paths for the endogenous variables (solution of the perfect foresight model).
|
|
|
|
% - info [struct] contains informations about the results.
|
2006-10-29 18:27:48 +01:00
|
|
|
% ALGORITHM
|
2012-06-04 17:23:14 +02:00
|
|
|
% ...
|
2006-10-29 18:27:48 +01:00
|
|
|
%
|
|
|
|
% SPECIAL REQUIREMENTS
|
|
|
|
% None.
|
2008-08-01 14:40:33 +02:00
|
|
|
|
2017-10-10 10:05:59 +02:00
|
|
|
% Copyright (C) 1996-2018 Dynare Team
|
2008-08-01 14:40:33 +02:00
|
|
|
%
|
|
|
|
% 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/>.
|
2005-02-18 20:54:39 +01:00
|
|
|
|
2015-03-04 09:41:29 +01:00
|
|
|
verbose = options.verbosity;
|
2015-02-12 15:26:11 +01:00
|
|
|
|
2015-02-11 22:23:21 +01:00
|
|
|
endogenous_terminal_period = options.endogenous_terminal_period;
|
|
|
|
vperiods = options.periods*ones(1,options.simul.maxit);
|
|
|
|
azero = options.dynatol.f/1e7;
|
2013-12-27 18:35:53 +01:00
|
|
|
|
2015-02-11 22:23:21 +01:00
|
|
|
lead_lag_incidence = M.lead_lag_incidence;
|
2006-01-12 11:21:40 +01:00
|
|
|
|
2015-02-11 22:23:21 +01:00
|
|
|
ny = M.endo_nbr;
|
2012-06-04 17:23:14 +02:00
|
|
|
|
2015-02-11 22:23:21 +01:00
|
|
|
maximum_lag = M.maximum_lag;
|
|
|
|
max_lag = M.maximum_endo_lag;
|
2012-06-04 17:23:14 +02:00
|
|
|
|
2006-01-12 11:21:40 +01:00
|
|
|
nyp = nnz(lead_lag_incidence(1,:)) ;
|
2012-06-04 17:23:14 +02:00
|
|
|
ny0 = nnz(lead_lag_incidence(2,:)) ;
|
2006-01-12 11:21:40 +01:00
|
|
|
nyf = nnz(lead_lag_incidence(3,:)) ;
|
2012-06-04 17:23:14 +02:00
|
|
|
|
|
|
|
nd = nyp+ny0+nyf;
|
2005-02-18 20:54:39 +01:00
|
|
|
stop = 0 ;
|
|
|
|
|
2015-02-11 22:23:21 +01:00
|
|
|
periods = options.periods;
|
|
|
|
params = M.params;
|
2015-12-15 17:53:13 +01:00
|
|
|
|
2012-06-04 17:23:14 +02:00
|
|
|
i_cols_1 = nonzeros(lead_lag_incidence(2:3,:)');
|
|
|
|
i_cols_A1 = find(lead_lag_incidence(2:3,:)');
|
2016-03-02 09:02:28 +01:00
|
|
|
i_cols_A1 = i_cols_A1(:);
|
2012-06-04 17:23:14 +02:00
|
|
|
i_cols_T = nonzeros(lead_lag_incidence(1:2,:)');
|
2013-01-18 17:02:15 +01:00
|
|
|
i_cols_0 = nonzeros(lead_lag_incidence(2,:)');
|
|
|
|
i_cols_A0 = find(lead_lag_incidence(2,:)');
|
2016-03-02 09:02:28 +01:00
|
|
|
i_cols_A0 = i_cols_A0(:);
|
2015-05-06 11:16:53 +02:00
|
|
|
i_cols_j = (1:nd)';
|
2015-01-15 13:55:48 +01:00
|
|
|
i_upd = maximum_lag*ny+(1:periods*ny);
|
2012-06-04 17:23:14 +02:00
|
|
|
|
2015-12-15 17:53:13 +01:00
|
|
|
Y = endogenousvariables(:);
|
2012-06-04 17:23:14 +02:00
|
|
|
|
2015-02-12 15:26:11 +01:00
|
|
|
if verbose
|
|
|
|
skipline()
|
2015-02-18 23:58:37 +01:00
|
|
|
printline(56)
|
|
|
|
disp('MODEL SIMULATION:')
|
|
|
|
skipline()
|
2015-02-12 15:26:11 +01:00
|
|
|
end
|
2005-02-18 20:54:39 +01:00
|
|
|
|
2018-06-27 17:02:13 +02:00
|
|
|
model_dynamic = str2func([M.fname,'.dynamic']);
|
2012-06-04 17:23:14 +02:00
|
|
|
z = Y(find(lead_lag_incidence'));
|
2015-12-15 17:53:13 +01:00
|
|
|
|
|
|
|
[d1,jacobian] = model_dynamic(z, exogenousvariables, params, steadystate,maximum_lag+1);
|
2012-06-04 17:23:14 +02:00
|
|
|
|
|
|
|
res = zeros(periods*ny,1);
|
2013-12-30 15:41:06 +01:00
|
|
|
|
|
|
|
o_periods = periods;
|
|
|
|
|
2015-07-29 11:54:10 +02:00
|
|
|
if endogenous_terminal_period
|
|
|
|
ZERO = zeros(length(i_upd),1);
|
|
|
|
end
|
|
|
|
|
2005-02-18 20:54:39 +01:00
|
|
|
h1 = clock ;
|
2015-05-25 09:43:21 +02:00
|
|
|
iA = zeros(periods*M.NNZDerivatives(1),3);
|
2015-12-15 17:53:13 +01:00
|
|
|
|
2015-05-25 09:43:21 +02:00
|
|
|
for iter = 1:options.simul.maxit
|
2008-10-21 17:33:51 +02:00
|
|
|
h2 = clock ;
|
2015-05-06 11:16:53 +02:00
|
|
|
i_rows = (1:ny)';
|
2015-01-15 11:25:29 +01:00
|
|
|
i_cols_A = find(lead_lag_incidence');
|
2016-03-02 09:02:28 +01:00
|
|
|
i_cols_A = i_cols_A(:);
|
2015-01-15 13:55:48 +01:00
|
|
|
i_cols = i_cols_A+(maximum_lag-1)*ny;
|
2015-05-06 11:16:53 +02:00
|
|
|
m = 0;
|
2015-01-15 13:55:48 +01:00
|
|
|
for it = (maximum_lag+1):(maximum_lag+periods)
|
2015-12-15 17:53:13 +01:00
|
|
|
[d1,jacobian] = model_dynamic(Y(i_cols), exogenousvariables, params, steadystate,it);
|
2015-01-15 13:55:48 +01:00
|
|
|
if it == maximum_lag+periods && it == maximum_lag+1
|
2015-05-06 11:16:53 +02:00
|
|
|
[r,c,v] = find(jacobian(:,i_cols_0));
|
2016-03-02 09:02:28 +01:00
|
|
|
iA((1:length(v))+m,:) = [i_rows(r(:)),i_cols_A0(c(:)),v(:)];
|
2015-01-15 13:55:48 +01:00
|
|
|
elseif it == maximum_lag+periods
|
2015-05-06 11:16:53 +02:00
|
|
|
[r,c,v] = find(jacobian(:,i_cols_T));
|
2016-03-02 09:02:28 +01:00
|
|
|
iA((1:length(v))+m,:) = [i_rows(r(:)),i_cols_A(i_cols_T(c(:))),v(:)];
|
2015-01-15 13:55:48 +01:00
|
|
|
elseif it == maximum_lag+1
|
2015-05-06 11:16:53 +02:00
|
|
|
[r,c,v] = find(jacobian(:,i_cols_1));
|
2016-03-02 09:02:28 +01:00
|
|
|
iA((1:length(v))+m,:) = [i_rows(r(:)),i_cols_A1(c(:)),v(:)];
|
2012-06-04 17:23:14 +02:00
|
|
|
else
|
2015-05-06 11:16:53 +02:00
|
|
|
[r,c,v] = find(jacobian(:,i_cols_j));
|
2016-03-02 09:02:28 +01:00
|
|
|
iA((1:length(v))+m,:) = [i_rows(r(:)),i_cols_A(c(:)),v(:)];
|
2012-06-04 17:23:14 +02:00
|
|
|
end
|
2015-05-06 11:16:53 +02:00
|
|
|
m = m + length(v);
|
2012-06-04 17:23:14 +02:00
|
|
|
res(i_rows) = d1;
|
2013-12-27 18:35:53 +01:00
|
|
|
if endogenous_terminal_period && iter>1
|
|
|
|
dr = max(abs(d1));
|
2013-12-30 15:41:06 +01:00
|
|
|
if dr<azero
|
2013-12-27 18:35:53 +01:00
|
|
|
vperiods(iter) = it;
|
2015-05-27 10:23:14 +02:00
|
|
|
periods = it-maximum_lag+1;
|
2013-12-27 18:35:53 +01:00
|
|
|
break
|
|
|
|
end
|
|
|
|
end
|
2012-06-04 17:23:14 +02:00
|
|
|
i_rows = i_rows + ny;
|
|
|
|
i_cols = i_cols + ny;
|
2015-01-15 13:55:48 +01:00
|
|
|
if it > maximum_lag+1
|
2012-06-04 17:23:14 +02:00
|
|
|
i_cols_A = i_cols_A + ny;
|
|
|
|
end
|
2008-10-21 17:33:51 +02:00
|
|
|
end
|
2012-06-04 17:23:14 +02:00
|
|
|
err = max(abs(res));
|
2015-07-21 15:32:33 +02:00
|
|
|
if options.debug
|
2015-07-07 15:26:49 +02:00
|
|
|
fprintf('\nLargest absolute residual at iteration %d: %10.3f\n',iter,err);
|
2013-10-06 20:22:20 +02:00
|
|
|
if any(isnan(res)) || any(isinf(res)) || any(isnan(Y)) || any(isinf(Y))
|
2015-07-07 15:26:49 +02:00
|
|
|
fprintf('\nWARNING: NaN or Inf detected in the residuals or endogenous variables.\n');
|
2013-10-06 20:22:20 +02:00
|
|
|
end
|
2014-11-06 09:08:50 +01:00
|
|
|
if ~isreal(res) || ~isreal(Y)
|
2015-07-07 15:26:49 +02:00
|
|
|
fprintf('\nWARNING: Imaginary parts detected in the residuals or endogenous variables.\n');
|
|
|
|
end
|
2013-10-06 20:22:20 +02:00
|
|
|
skipline()
|
|
|
|
end
|
2015-02-18 23:58:37 +01:00
|
|
|
if verbose
|
|
|
|
str = sprintf('Iter: %s,\t err. = %s, \t time = %s',num2str(iter),num2str(err), num2str(etime(clock,h2)));
|
|
|
|
disp(str);
|
|
|
|
end
|
2015-02-11 22:23:21 +01:00
|
|
|
if err < options.dynatol.f
|
2008-10-21 17:33:51 +02:00
|
|
|
stop = 1 ;
|
|
|
|
break
|
|
|
|
end
|
2015-05-06 11:16:53 +02:00
|
|
|
iA = iA(1:m,:);
|
|
|
|
A = sparse(iA(:,1),iA(:,2),iA(:,3),periods*ny,periods*ny);
|
2013-12-27 18:35:53 +01:00
|
|
|
if endogenous_terminal_period && iter>1
|
2013-12-30 15:41:06 +01:00
|
|
|
dy = ZERO;
|
2015-09-06 11:41:49 +02:00
|
|
|
if options.simul.robust_lin_solve
|
2017-05-16 15:10:20 +02:00
|
|
|
dy(1:i_rows(end)) = -lin_solve_robust( A(1:i_rows(end),1:i_rows(end)), res(1:i_rows(end)),verbose );
|
2015-09-06 11:41:49 +02:00
|
|
|
else
|
2016-03-25 20:14:25 +01:00
|
|
|
dy(1:i_rows(end)) = -lin_solve( A(1:i_rows(end),1:i_rows(end)), res(1:i_rows(end)), verbose );
|
2015-09-06 11:41:49 +02:00
|
|
|
end
|
2013-12-27 18:35:53 +01:00
|
|
|
else
|
2015-09-06 11:41:49 +02:00
|
|
|
if options.simul.robust_lin_solve
|
2017-05-16 15:10:20 +02:00
|
|
|
dy = -lin_solve_robust( A, res, verbose );
|
2015-09-06 11:41:49 +02:00
|
|
|
else
|
2016-03-25 20:14:25 +01:00
|
|
|
dy = -lin_solve( A, res, verbose );
|
2015-09-06 11:41:49 +02:00
|
|
|
end
|
2013-12-27 18:35:53 +01:00
|
|
|
end
|
2017-03-24 17:13:03 +01:00
|
|
|
if any(~isreal(dy)) || any(isnan(dy)) || any(isinf(dy))
|
2017-03-23 00:01:11 +01:00
|
|
|
if verbose
|
|
|
|
display_critical_variables(reshape(dy,[ny periods])', M);
|
|
|
|
end
|
|
|
|
end
|
2015-12-15 17:53:13 +01:00
|
|
|
Y(i_upd) = Y(i_upd) + dy;
|
2005-02-18 20:54:39 +01:00
|
|
|
end
|
|
|
|
|
2013-12-28 17:41:36 +01:00
|
|
|
if endogenous_terminal_period
|
2015-12-15 17:53:13 +01:00
|
|
|
err = evaluate_max_dynamic_residual(model_dynamic, Y, exogenousvariables, params, steadystate, o_periods, ny, max_lag, lead_lag_incidence);
|
2013-12-30 15:41:06 +01:00
|
|
|
periods = o_periods;
|
2013-12-28 17:41:36 +01:00
|
|
|
end
|
|
|
|
|
2012-06-04 17:23:14 +02:00
|
|
|
|
2013-10-06 20:22:20 +02:00
|
|
|
if stop
|
2015-12-15 17:53:13 +01:00
|
|
|
if any(isnan(res)) || any(isinf(res)) || any(isnan(Y)) || any(isinf(Y)) || ~isreal(res) || ~isreal(Y)
|
|
|
|
info.status = false;% NaN or Inf occurred
|
|
|
|
info.error = err;
|
|
|
|
info.iterations = iter;
|
|
|
|
info.periods = vperiods(1:iter);
|
|
|
|
endogenousvariables = reshape(Y,ny,periods+maximum_lag+M.maximum_lead);
|
2015-02-12 15:26:11 +01:00
|
|
|
if verbose
|
2015-02-18 23:58:37 +01:00
|
|
|
skipline()
|
|
|
|
disp(sprintf('Total time of simulation: %s.', num2str(etime(clock,h1))))
|
2017-03-22 14:04:35 +01:00
|
|
|
if ~isreal(res) || ~isreal(Y)
|
|
|
|
disp('Simulation terminated with imaginary parts in the residuals or endogenous variables.')
|
|
|
|
else
|
|
|
|
disp('Simulation terminated with NaN or Inf in the residuals or endogenous variables.')
|
|
|
|
end
|
2017-03-23 00:01:11 +01:00
|
|
|
display_critical_variables(reshape(dy,[ny periods])', M);
|
2015-02-18 23:58:37 +01:00
|
|
|
disp('There is most likely something wrong with your model. Try model_diagnostics or another simulation method.')
|
|
|
|
printline(105)
|
2014-11-06 09:08:50 +01:00
|
|
|
end
|
2013-10-06 20:22:20 +02:00
|
|
|
else
|
2015-02-12 15:26:11 +01:00
|
|
|
if verbose
|
|
|
|
skipline();
|
2015-02-18 23:58:37 +01:00
|
|
|
disp(sprintf('Total time of simulation: %s', num2str(etime(clock,h1))))
|
|
|
|
printline(56)
|
2015-02-12 15:26:11 +01:00
|
|
|
end
|
2015-12-15 17:53:13 +01:00
|
|
|
info.status = true;% Convergency obtained.
|
|
|
|
info.error = err;
|
|
|
|
info.iterations = iter;
|
|
|
|
info.periods = vperiods(1:iter);
|
|
|
|
endogenousvariables = reshape(Y,ny,periods+maximum_lag+M.maximum_lead);
|
2013-10-06 20:22:20 +02:00
|
|
|
end
|
|
|
|
elseif ~stop
|
2015-02-12 15:26:11 +01:00
|
|
|
if verbose
|
2013-10-06 20:22:20 +02:00
|
|
|
skipline();
|
2015-02-18 23:58:37 +01:00
|
|
|
disp(sprintf('Total time of simulation: %s.', num2str(etime(clock,h1))))
|
|
|
|
disp('Maximum number of iterations is reached (modify option maxit).')
|
|
|
|
printline(62)
|
2013-10-06 20:22:20 +02:00
|
|
|
end
|
2015-12-15 17:53:13 +01:00
|
|
|
info.status = false;% more iterations are needed.
|
|
|
|
info.error = err;
|
|
|
|
info.periods = vperiods(1:iter);
|
|
|
|
info.iterations = options.simul.maxit;
|
2005-02-18 20:54:39 +01:00
|
|
|
end
|
2015-02-12 15:26:11 +01:00
|
|
|
|
|
|
|
if verbose
|
|
|
|
skipline();
|
2015-02-16 09:08:02 +01:00
|
|
|
end
|
2015-09-06 11:41:49 +02:00
|
|
|
|
2016-03-25 20:14:25 +01:00
|
|
|
function x = lin_solve( A, b,verbose)
|
2017-05-16 15:10:20 +02:00
|
|
|
if norm( b ) < sqrt( eps ) % then x = 0 is a solution
|
|
|
|
x = 0;
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
x = A\b;
|
|
|
|
x( ~isfinite( x ) ) = 0;
|
|
|
|
relres = norm( b - A * x ) / norm( b );
|
|
|
|
if relres > 1e-6 && verbose
|
|
|
|
fprintf( 'WARNING : Failed to find a solution to the linear system.\n' );
|
|
|
|
end
|
|
|
|
|
2016-03-25 20:14:25 +01:00
|
|
|
function [ x, flag, relres ] = lin_solve_robust( A, b , verbose)
|
2017-05-16 15:10:20 +02:00
|
|
|
if norm( b ) < sqrt( eps ) % then x = 0 is a solution
|
|
|
|
x = 0;
|
|
|
|
flag = 0;
|
|
|
|
relres = 0;
|
|
|
|
return
|
|
|
|
end
|
2015-09-06 11:41:49 +02:00
|
|
|
|
2017-05-16 15:10:20 +02:00
|
|
|
x = A\b;
|
|
|
|
x( ~isfinite( x ) ) = 0;
|
|
|
|
[ x, flag, relres ] = bicgstab( A, b, [], [], [], [], x ); % returns immediately if x is a solution
|
|
|
|
if flag == 0
|
|
|
|
return
|
|
|
|
end
|
2015-09-06 11:41:49 +02:00
|
|
|
|
2017-05-16 15:10:20 +02:00
|
|
|
disp( relres );
|
2015-09-06 11:41:49 +02:00
|
|
|
|
2017-05-16 15:10:20 +02:00
|
|
|
if verbose
|
|
|
|
fprintf( 'Initial bicgstab failed, trying alternative start point.\n' );
|
|
|
|
end
|
|
|
|
old_x = x;
|
|
|
|
old_relres = relres;
|
|
|
|
[ x, flag, relres ] = bicgstab( A, b );
|
|
|
|
if flag == 0
|
|
|
|
return
|
|
|
|
end
|
2015-09-06 11:41:49 +02:00
|
|
|
|
2017-05-16 15:10:20 +02:00
|
|
|
if verbose
|
|
|
|
fprintf( 'Alternative start point also failed with bicgstab, trying gmres.\n' );
|
|
|
|
end
|
|
|
|
if old_relres < relres
|
|
|
|
x = old_x;
|
|
|
|
end
|
|
|
|
[ x, flag, relres ] = gmres( A, b, [], [], [], [], [], x );
|
|
|
|
if flag == 0
|
|
|
|
return
|
|
|
|
end
|
2015-09-06 11:41:49 +02:00
|
|
|
|
2017-05-16 15:10:20 +02:00
|
|
|
if verbose
|
|
|
|
fprintf( 'Initial gmres failed, trying alternative start point.\n' );
|
|
|
|
end
|
|
|
|
old_x = x;
|
|
|
|
old_relres = relres;
|
|
|
|
[ x, flag, relres ] = gmres( A, b );
|
|
|
|
if flag == 0
|
|
|
|
return
|
|
|
|
end
|
2017-03-23 00:01:11 +01:00
|
|
|
|
2017-05-16 15:10:20 +02:00
|
|
|
if verbose
|
|
|
|
fprintf( 'Alternative start point also failed with gmres, using the (SLOW) Moore-Penrose Pseudo-Inverse.\n' );
|
|
|
|
end
|
|
|
|
if old_relres < relres
|
|
|
|
x = old_x;
|
|
|
|
relres = old_relres;
|
|
|
|
end
|
|
|
|
old_x = x;
|
|
|
|
old_relres = relres;
|
|
|
|
x = pinv( full( A ) ) * b;
|
|
|
|
relres = norm( b - A * x ) / norm( b );
|
|
|
|
if old_relres < relres
|
|
|
|
x = old_x;
|
|
|
|
relres = old_relres;
|
|
|
|
end
|
|
|
|
flag = relres > 1e-6;
|
|
|
|
if flag ~= 0 && verbose
|
|
|
|
fprintf( 'WARNING : Failed to find a solution to the linear system\n' );
|
|
|
|
end
|
|
|
|
|
|
|
|
function display_critical_variables(dyy, M)
|
2017-03-23 00:01:11 +01:00
|
|
|
|
2017-05-16 15:10:20 +02:00
|
|
|
if any(isnan(dyy))
|
|
|
|
indx = find(any(isnan(dyy)));
|
2017-10-10 10:05:59 +02:00
|
|
|
endo_names= M.endo_names(indx);
|
2017-05-16 15:10:20 +02:00
|
|
|
disp('Last iteration provided NaN for the following variables:')
|
2017-10-10 10:05:59 +02:00
|
|
|
fprintf('%s, ', endo_names{:}),
|
2017-05-16 15:10:20 +02:00
|
|
|
fprintf('\n'),
|
|
|
|
end
|
|
|
|
if any(isinf(dyy))
|
|
|
|
indx = find(any(isinf(dyy)));
|
2017-10-10 10:05:59 +02:00
|
|
|
endo_names = M.endo_names(indx);
|
2017-05-16 15:10:20 +02:00
|
|
|
disp('Last iteration diverged (Inf) for the following variables:')
|
2017-10-10 10:05:59 +02:00
|
|
|
fprintf('%s, ', endo_names{:}),
|
2017-05-16 15:10:20 +02:00
|
|
|
fprintf('\n'),
|
|
|
|
end
|
|
|
|
if any(~isreal(dyy))
|
|
|
|
indx = find(any(~isreal(dyy)));
|
2017-10-10 10:05:59 +02:00
|
|
|
endo_names = M.endo_names(indx);
|
2017-05-16 15:10:20 +02:00
|
|
|
disp('Last iteration provided complex number for the following variables:')
|
2017-10-10 10:05:59 +02:00
|
|
|
fprintf('%s, ', endo_names{:}),
|
2017-05-16 15:10:20 +02:00
|
|
|
fprintf('\n'),
|
|
|
|
end
|