MS-SBVAR: support non 4 digit years (fix thanks to Margarita Zabelina)
parent
837451c724
commit
dd1a48c7c7
|
@ -39,8 +39,7 @@ hornum = cell(length(vyrs),1); % horizontal year (number)
|
|||
count=0;
|
||||
for k=vyrs'
|
||||
count=count+1;
|
||||
jnk=num2str(k);
|
||||
hornum{count}=jnk(3:4); % e.g., with '1990', we have '90'
|
||||
hornum{count}=num2str(k);
|
||||
end
|
||||
|
||||
count=0;
|
||||
|
|
|
@ -90,8 +90,7 @@ qmEnd=options_.ms.final_subperiod;
|
|||
if options_.forecast<1
|
||||
error('To be safe, the number of forecast years should be at least 1')
|
||||
end
|
||||
ystr=num2str(yrEnd);
|
||||
forelabel = [ ystr(3:4) ':' num2str(qmEnd) ' Forecast'];
|
||||
forelabel = [num2str(yrEnd) ':' num2str(qmEnd) ' Forecast'];
|
||||
|
||||
nSample=(yrEnd-yrStart)*options_.ms.freq + (qmEnd-qmStart+1);
|
||||
if qmEnd==options_.ms.freq
|
||||
|
|
Loading…
Reference in New Issue