2006-11-04 17:16:25 +01:00
|
|
|
function save_results(x,s_name,names)
|
2008-01-17 17:00:51 +01:00
|
|
|
|
2006-11-04 17:16:25 +01:00
|
|
|
% function save_results(x,s_name,names)
|
|
|
|
% save results in appropriate structure
|
2008-01-17 17:00:51 +01:00
|
|
|
%
|
2006-11-04 17:16:25 +01:00
|
|
|
% 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
|
2008-01-17 17:00:51 +01:00
|
|
|
%
|
2006-11-04 17:16:25 +01:00
|
|
|
% OUTPUT
|
|
|
|
% none
|
2008-01-17 17:00:51 +01:00
|
|
|
%
|
2006-11-04 17:16:25 +01:00
|
|
|
% SPECIAL REQUIREMENT
|
|
|
|
% none
|
|
|
|
%
|
2008-01-17 17:00:51 +01:00
|
|
|
% part of DYNARE, copyright Dynare Team (2006-2008)
|
2006-11-04 17:16:25 +01:00
|
|
|
% Gnu Public License.
|
2008-01-17 17:00:51 +01:00
|
|
|
|
2006-11-04 17:16:25 +01:00
|
|
|
global oo_
|
|
|
|
|
|
|
|
for i=1:size(x,2)
|
|
|
|
eval([s_name deblank(names(i,:)) '= x(:,i);']);
|
|
|
|
end
|