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

handle initial value from smoother2histval for simulation

parent 809a832c
Branches
No related tags found
No related merge requests found
...@@ -563,6 +563,12 @@ elseif strcmp(evt.NewValue.String, 'smoother') ...@@ -563,6 +563,12 @@ elseif strcmp(evt.NewValue.String, 'smoother')
evt.OldValue.Value = 1; evt.OldValue.Value = 1;
return return
end end
handles.endoTable.Data(:,3) = num2cell(oo_.SmoothedVariables); fname = inputdlg('output file from smoother2histval');
if isempty(fname)
evt.OldValue.Value = 1;
else
histvalf(fname{:})
handles.endoTable.Data(:,3) = num2cell(M_.endo_histval);
end
end end
end end
\ No newline at end of file
...@@ -128,6 +128,7 @@ uicontrol(handles.buttongroup, ... ...@@ -128,6 +128,7 @@ uicontrol(handles.buttongroup, ...
'Style', 'radiobutton', ... 'Style', 'radiobutton', ...
'String', 'steady state', ... 'String', 'steady state', ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Value', 1, ...
'Position', [0.3 0 1 1]); 'Position', [0.3 0 1 1]);
uicontrol(handles.buttongroup, ... uicontrol(handles.buttongroup, ...
...@@ -311,6 +312,12 @@ elseif strcmp(evt.NewValue.String, 'smoother') ...@@ -311,6 +312,12 @@ elseif strcmp(evt.NewValue.String, 'smoother')
evt.OldValue.Value = 1; evt.OldValue.Value = 1;
return return
end end
handles.endoTable.Data(:,3) = num2cell(oo_.SmoothedVariables); fname = inputdlg('output file from smoother2histval');
if isempty(fname)
evt.OldValue.Value = 1;
else
histvalf(fname{:})
handles.endoTable.Data(:,3) = num2cell(M_.endo_histval([model_settings.variables{:, 4}]));
end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment