Execute the following code and note the year labels are not aligned correctly. I would like to know if this is a bug in DATEAXIS.
vd = datenum('01-Jun-1991'):datenum('30-Jun-2001');dy_3M_vol = abs(sin(0.01*vd).*(randn(size(vd))))+.0001;figure(1)plot(vd,dy_3M_vol);axis([ datenum(1991,01,01) datenum(2001,12,31) 0 ceil(max(dy_3M_vol)*10)/10]);dateaxis('x');xlabel('Date');ylabel('3M yield volatility (yearly, percentage)');
Best Answer