У меня небольшая проблема с печатью рисунка Matlab в нужный мне размер.Текущий показатель, который я могу получить, показан вверху, а я хочу, чтобы этот показатель был внизу.Я использовал код из справки Matlab, чтобы минимизировать пустое пространство.
Спасибо.
Спасибо за помощь.
ax = gca;
outerpos = ax.OuterPosition;
ti = ax.TightInset;
left = outerpos(1) + ti(1);
bottom = outerpos(2) + ti(2);
ax_width = outerpos(3) - ti(1) - ti(3);
ax_height = outerpos(4) - ti(2) - ti(4);
ax.Position = [left bottom ax_width ax_height];
set(gca,'YTick',[0:1:4])
set(gca,'XTick',[0:2:20])
set(gca,'XMinorTick','on','YMinorTick','on')
set(gca,'TickLength',[0.015 0.01])
set(gca,'FontSize',12)
set(gca,'FontName','Times New Roman')
set(gca,'layer','top')
set(gcf,'renderer','zbuffer');

