v4 parser.src: made rplottype an option
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@724 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
2ae6df4b22
commit
eca3df3338
Binary file not shown.
|
@ -3,18 +3,19 @@ function global_initialization()
|
||||||
|
|
||||||
ct_=0;
|
ct_=0;
|
||||||
endval_=0;
|
endval_=0;
|
||||||
rplottype_=0;
|
|
||||||
|
|
||||||
options_.smpl=0;
|
options_.rplottype = 0;
|
||||||
|
options_.smpl = 0;
|
||||||
options_.dynatol = 0.00001;
|
options_.dynatol = 0.00001;
|
||||||
options_.maxit_=10;
|
options_.maxit_ = 10;
|
||||||
options_.slowc=1;
|
options_.slowc = 1;
|
||||||
options_.timing=0;
|
options_.timing = 0;
|
||||||
options_.gstep=1e-2;
|
options_.gstep = 1e-2;
|
||||||
options_.debug=0
|
options_.debug = 0
|
||||||
options_.initval_file=0;
|
options_.initval_file = 0;
|
||||||
|
|
||||||
oo_.exo_simul = [];
|
oo_.exo_simul = [];
|
||||||
oo_.y_simul = [];
|
oo_.y_simul = [];
|
||||||
oo_.dr = struct([]);
|
oo_.dr = struct([]);
|
||||||
oo_.exo_det_steady_state = [];
|
oo_.exo_det_steady_state = [];
|
||||||
|
oo_.exo_det_simul = [];
|
|
@ -1,7 +1,7 @@
|
||||||
% Copyright (C) 2001 Michel Juillard
|
% Copyright (C) 2001 Michel Juillard
|
||||||
%
|
%
|
||||||
function rplot(s1,rplottype)
|
function rplot(s1)
|
||||||
% RPLOT : RPLOT ( ['var1'; 'var2'; ...] , rplottype )
|
% RPLOT : RPLOT ( ['var1'; 'var2'; ...] )
|
||||||
% This optionnal command creates the plot of the variable
|
% This optionnal command creates the plot of the variable
|
||||||
% trajectory. By default, the entire simulation period is
|
% trajectory. By default, the entire simulation period is
|
||||||
% ploted. The instruction DSAMPLE permits to reduce the
|
% ploted. The instruction DSAMPLE permits to reduce the
|
||||||
|
@ -9,9 +9,7 @@ function rplot(s1,rplottype)
|
||||||
|
|
||||||
global M_ oo_ options_
|
global M_ oo_ options_
|
||||||
|
|
||||||
if nargin == 1
|
rplottype = options_.rplottype;
|
||||||
rplottype = 0;
|
|
||||||
end
|
|
||||||
|
|
||||||
col = ['y','c','r','g','b','w','m'] ;
|
col = ['y','c','r','g','b','w','m'] ;
|
||||||
ix = [1 - M_.maximum_lag:size(oo_.y_simul,2)-M_.maximum_lag]' ;
|
ix = [1 - M_.maximum_lag:size(oo_.y_simul,2)-M_.maximum_lag]' ;
|
||||||
|
|
|
@ -73,7 +73,7 @@ void ComputingTasks::runEstimation(string tmp1)
|
||||||
void ComputingTasks::runRplot(string tmp1)
|
void ComputingTasks::runRplot(string tmp1)
|
||||||
{
|
{
|
||||||
*output << tmp1;
|
*output << tmp1;
|
||||||
*output << "rplot(var_list_,rplottype_);\n";
|
*output << "rplot(var_list_);\n";
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
void ComputingTasks::setEstimationInit(void)
|
void ComputingTasks::setEstimationInit(void)
|
||||||
|
|
Loading…
Reference in New Issue