commit
0d21927381
|
@ -80,7 +80,7 @@ for i=1:NumberOfModels
|
|||
if i==iname
|
||||
mstruct.oo_ = oo;
|
||||
else
|
||||
if strcmpi(ModelNames{i}(end-3:end),'.mod') || strcmpi(ModelNames{i}(end-3:end),'.dyn')
|
||||
if length(ModelNames{i})>3 && (strcmpi(ModelNames{i}(end-3:end),'.mod') || strcmpi(ModelNames{i}(end-3:end),'.dyn'))
|
||||
mstruct = load([ModelNames{i}(1:end-4) filesep 'Output' ModelNames{i}(1:end-4) '_results.mat' ],'oo_');
|
||||
else
|
||||
mstruct = load([ModelNames{i} filesep 'Output' filesep ModelNames{i} '_results.mat' ],'oo_');
|
||||
|
|
|
@ -118,13 +118,13 @@ end
|
|||
|
||||
% Load the data in a dseries object.
|
||||
if ~isempty(datafile)
|
||||
if ~( newdatainterface==0 && (strcmp(datafile(end-1:end),'.m')|| strcmp(datafile(end-3:end),'.mat')))
|
||||
if ~(newdatainterface==0 && ((length(datafile)>2 && strcmp(datafile(end-1:end),'.m')) || (length(datafile)>4 && strcmp(datafile(end-3:end),'.mat'))))
|
||||
DynareDataset = dseries(datafile);
|
||||
else
|
||||
if strcmp(datafile(end-1:end),'.m')
|
||||
if length(datafile)>2 && strcmp(datafile(end-1:end),'.m')
|
||||
% Load an m file with the old interface.
|
||||
DynareDataset = load_m_file_data_legacy(datafile, DynareOptions.varobs);
|
||||
elseif strcmp(datafile(end-3:end),'.mat')
|
||||
elseif length(datafile)>4 && strcmp(datafile(end-3:end),'.mat')
|
||||
% Load a mat file with the old interface.
|
||||
DynareDataset = load_mat_file_data_legacy(datafile, DynareOptions.varobs);
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue