When creating a plot in Matlab the following error is produced:

I have tried many different methods of trying to find the problem and solving it. I think I have identified that the cause is because I am using multiple xlim commands. Here is my code:
figure
plot(datee,[allfile.bytes],'k','LineWidth',1.5);
hold on;
plot(datee,EMA,'--b','LineWidth',0.75);
title(sprintf('File size of %s',[token{1},dateno{1},name]));
xlabel('Month/Day');
set(gca, 'YTickLabel', num2str(get(gca,'YTick')'/1024,'%0.0f'));
datetick('x','mm/dd');
ylabel('Bytes in Kb');
plot(xlim,[ulimit ulimit], 'r')
plot(xlim,[ASize{jj} ASize{jj}], 'g')
plot(xlim,[llimit llimit], 'r')
axis tight;
axis 'auto y';
hlegend=legend('File Size','Average/EMA','Upper/Lower limit','Current Size');
set(hlegend,'Location','Best')
I do not understand why the problem occurs as it does.. And also how to solve it! Has anyone experienced this before? Since I think the xlim command is the fault, are there any other alternatives to creating a solid straight line across the whole plot?
dateeetc - Luis Mendo