Skip to content
Snippets Groups Projects
Verified Commit 373abce7 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

fix bug in creation of model_settings structure

parent 68027d6c
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ function status = gui_create_model_settings() ...@@ -11,7 +11,7 @@ function status = gui_create_model_settings()
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2003-2019 Dynare Team % Copyright (C) 2003-2020 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -119,7 +119,7 @@ setappdata(0, 'model_settings', model_settings); ...@@ -119,7 +119,7 @@ setappdata(0, 'model_settings', model_settings);
for j = 1:length(gn) for j = 1:length(gn)
sn = M_.shock_groups.(fn{i}).(gn{j}).shocks; sn = M_.shock_groups.(fn{i}).(gn{j}).shocks;
for k = 1:length(sn) for k = 1:length(sn)
idx = find(not(cellfun('isempty', strfind(model_settings.shocks(:,1), sn{k})))); idx = find(strcmp(model_settings.shocks(:,1), sn{k}));
model_settings.shocks{idx, col} = fn{i}; model_settings.shocks{idx, col} = fn{i};
model_settings.shocks{idx, col+1} = M_.shock_groups.(fn{i}).(gn{j}).label; model_settings.shocks{idx, col+1} = M_.shock_groups.(fn{i}).(gn{j}).label;
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment