diff --git a/matlab/dyn_latex_table.m b/matlab/dyn_latex_table.m index 0cd33e63c5963236135181de90ea8530ca7c4d20..52c7ed8c609c2003756e19bf8dd82715750e3bc4 100644 --- a/matlab/dyn_latex_table.m +++ b/matlab/dyn_latex_table.m @@ -93,7 +93,7 @@ if nargin==11 end fprintf(fidTeX,header_string); fprintf(fidTeX,'\\midrule \\endhead \n'); -fprintf(fidTeX,['\\bottomrule \\multicolumn{',num2str(size(headers,1)),'}{r}{(Continued on next page)} \\\\ \\hline \\endfoot \n']); +fprintf(fidTeX,['\\midrule \\multicolumn{',num2str(size(headers,1)),'}{r}{(Continued on next page)} \\\\ \\bottomrule \\endfoot \n']); fprintf(fidTeX,'\\bottomrule \\endlastfoot \n'); for i=1:size(values,1) fprintf(fidTeX,label_format_leftbound,deblank(labels(i,:))); diff --git a/matlab/rplot.m b/matlab/rplot.m index fe738c66a868454d4fc3690d367c33fc3128e1ae..5705abdc1b74d8971cca14d05c540d3eb113a225 100644 --- a/matlab/rplot.m +++ b/matlab/rplot.m @@ -85,6 +85,7 @@ if rplottype == 0 plot(ix(i),y(:,i)) ; title (t,'Interpreter','none') ; xlabel('Periods') ; + xlim([min(ix(i)) max(ix(i))]) if size(s1,1) > 1 if isoctave legend(s1); @@ -101,6 +102,7 @@ elseif rplottype == 1 for j = 1:size(y,1) hh=dyn_figure(options_,'Name',['Simulated Trajectory']); plot(ix(i),y(j,i)) ; + xlim([min(ix(i)) max(ix(i))]) title(['Plot of ' s1(j,:)],'Interpreter','none') ; xlabel('Periods') ; dyn_saveas(hh,[M_.fname, filesep, 'graphs', filesep, 'SimulatedTrajectory_' deblank(s1(j,:))],options_)