Filter out empty oo_.endo_simul in rplot.m
parent
fa3e77d163
commit
6a8c968411
|
@ -35,13 +35,17 @@ global M_ oo_ options_
|
||||||
|
|
||||||
rplottype = options_.rplottype;
|
rplottype = options_.rplottype;
|
||||||
|
|
||||||
|
if isempty(oo_.endo_simul)
|
||||||
|
error('rplot: oo_.endo_simul is empty.')
|
||||||
|
end
|
||||||
|
|
||||||
col = ['y','c','r','g','b','w','m'] ;
|
col = ['y','c','r','g','b','w','m'] ;
|
||||||
ix = [1 - M_.maximum_lag:size(oo_.endo_simul,2)-M_.maximum_lag]' ;
|
ix = [1 - M_.maximum_lag:size(oo_.endo_simul,2)-M_.maximum_lag]' ;
|
||||||
|
|
||||||
y = [];
|
y = [];
|
||||||
for k=1:size(s1,1)
|
for k=1:size(s1,1)
|
||||||
if isempty(strmatch(s1(k,:),M_.endo_names,'exact'))
|
if isempty(strmatch(s1(k,:),M_.endo_names,'exact'))
|
||||||
error (['One of the variable specified does not exist']) ;
|
error (['rplot: One of the variables specified does not exist']) ;
|
||||||
end
|
end
|
||||||
|
|
||||||
y = [y; oo_.endo_simul(strmatch(s1(k,:),M_.endo_names,'exact'),:)] ;
|
y = [y; oo_.endo_simul(strmatch(s1(k,:),M_.endo_names,'exact'),:)] ;
|
||||||
|
|
Loading…
Reference in New Issue