


function save_results(x,s_name,names) save results in appropriate structure INPUT x: matrix to be saved column by column s_name: name of the structure where to save the results names: names of the individual series OUTPUT none SPECIAL REQUIREMENT none


0001 function save_results(x,s_name,names) 0002 0003 % function save_results(x,s_name,names) 0004 % save results in appropriate structure 0005 % 0006 % INPUT 0007 % x: matrix to be saved column by column 0008 % s_name: name of the structure where to save the results 0009 % names: names of the individual series 0010 % 0011 % OUTPUT 0012 % none 0013 % 0014 % SPECIAL REQUIREMENT 0015 % none 0016 0017 % Copyright (C) 2006-2009 Dynare Team 0018 % 0019 % This file is part of Dynare. 0020 % 0021 % Dynare is free software: you can redistribute it and/or modify 0022 % it under the terms of the GNU General Public License as published by 0023 % the Free Software Foundation, either version 3 of the License, or 0024 % (at your option) any later version. 0025 % 0026 % Dynare is distributed in the hope that it will be useful, 0027 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0028 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0029 % GNU General Public License for more details. 0030 % 0031 % You should have received a copy of the GNU General Public License 0032 % along with Dynare. If not, see <http://www.gnu.org/licenses/>. 0033 0034 global oo_ 0035 0036 for i=1:size(x,2) 0037 eval([s_name deblank(names(i,:)) '= x(:,i);']); 0038 end