diff --git a/src/gui_determ_simulation.m b/src/gui_determ_simulation.m index 8cd4a385a3d28668b103845e1e0052c4160747b5..b00f151784abee03f9284c645f9cb9aaafb18667 100644 --- a/src/gui_determ_simulation.m +++ b/src/gui_determ_simulation.m @@ -563,6 +563,12 @@ elseif strcmp(evt.NewValue.String, 'smoother') evt.OldValue.Value = 1; return 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 \ No newline at end of file diff --git a/src/gui_stoch_simulation.m b/src/gui_stoch_simulation.m index 8b72b0710a06d5adead4ae295debd84da503d08c..3fcd77a0120529a98344e3580be625188eca4638 100644 --- a/src/gui_stoch_simulation.m +++ b/src/gui_stoch_simulation.m @@ -128,6 +128,7 @@ uicontrol(handles.buttongroup, ... 'Style', 'radiobutton', ... 'String', 'steady state', ... 'Units', 'normalized', ... + 'Value', 1, ... 'Position', [0.3 0 1 1]); uicontrol(handles.buttongroup, ... @@ -311,6 +312,12 @@ elseif strcmp(evt.NewValue.String, 'smoother') evt.OldValue.Value = 1; return 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