disp('Inventory vectors, addition and plots') pause clear; month = (7:1:12)' pause A = [26 27 20 37 50 60]' pause double_A = 2*A pause B = [28 31 25 39 55 67]' pause sum_A_and_B = A + B pause inventory_matrix = [A B] pause whos pause disp('A versus months in figure window...line plot') plot(month,A) pause disp('A versus months in figure window...scatter plot') plot(month,A,'*') pause disp('A and B versus months in figure window') plot(month,A,month,B) pause clear disp('Amount versus time in figure window') disp('t = 0 :.5:100;') disp('x = 1000 - 1000*exp((-6/100)*t);') pause t = 0 :.5:100; x = 1000 - 1000*exp((-6/100)*t); whos pause plot(t,x)