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

fix size of endo table displayed in for forecast panel

parent 208c7d02
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ function new_handles = create_endo_vars(handles, command) ...@@ -14,7 +14,7 @@ function new_handles = create_endo_vars(handles, command)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2019 Dynare Team % Copyright (C) 2019-2020 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -36,7 +36,6 @@ global model_settings oo_ ys0_ ...@@ -36,7 +36,6 @@ global model_settings oo_ ys0_
handles.varsTabGroup = uitabgroup(handles.uipanelVars, 'Position', [0 0 1 1]); handles.varsTabGroup = uitabgroup(handles.uipanelVars, 'Position', [0 0 1 1]);
varidxs = find([model_settings.variables{:, 4}]); varidxs = find([model_settings.variables{:, 4}]);
nvars = length(varidxs);
column_names = {'Active', 'Name'}; column_names = {'Active', 'Name'};
switch command switch command
case 'perfect_foresight' case 'perfect_foresight'
...@@ -47,7 +46,9 @@ switch command ...@@ -47,7 +46,9 @@ switch command
column_names = {'Active', 'Name', 'Long Name'}; column_names = {'Active', 'Name', 'Long Name'};
case 'forecast' case 'forecast'
column_names = {'Active', 'Name', 'Initial Condition', 'New Value'}; column_names = {'Active', 'Name', 'Initial Condition', 'New Value'};
varidxs = 1:size(model_settings.variables,1);
end end
nvars = length(varidxs);
editable = true(1, size(column_names, 2)); editable = true(1, size(column_names, 2));
editable(2) = false; editable(2) = false;
data = cell(nvars, size(column_names, 2)); data = cell(nvars, size(column_names, 2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment