clear all close all clc set(gca,'FontSize',18) linewidth = 2; t = 0:0.1:5; c = [-4,-3,-2,-1,-0.7,-0,5,-0.2,-0.1,-0.05,0,4,3,2,1,0.7,0,5,0.2,0.1,0.05]; for count = 1:length(c) plot(c(count)*exp(t),t,'Linewidth',linewidth) hold on end xlabel('x') ylabel('t') set(gca,'XTick',[-5:2:5]) axis([-5,5,0,5]) hold off print -djpeg characteristic_linear1 figure x = -5:0.1:5; t = 0:0.1:3; u = zeros(length(x),length(t)); for j = 1:length(t); u(:,j) = exp(-(x.*exp(-t(j))).^2); end set(gca,'FontSize',18) waterfall(x,t,u.') xlabel('x') ylabel('t') zlabel('u') %axis([-5,5,0,5,0,1]) print -djpeg waterfall_linear1