>> n=-10:10; >> y=n.^2; >> subplot(1,2,1) >> stem(n,y) >> title('stem function') >> subplot(1,2,2) >> stairs(n,y) >> title('stairs function')