close all clear all clc t = -10:.1:10; figure for u = -9:10 subplot(4,5,u+10) plot(t,tanh(t),t,tanh(u-t)) grid on title(['u = ' num2str(u)]) end % printing figure in png format set(gcf,'PaperUnits','inches','PaperPosition',[0 0 8 6]) print -dpng homework2.png -r100