% Aufgabe 2.7.1: Funktions-Plot
%    polyPlot()
function  polyPlot()
   x = [-2:0.1:2];
   
   y1 = x; 
   y2 = x.*x; 
   y3 = x.*x.*x; 
   y4 = x.*x.*x.*x;
   
   hold on
   plot(x,y1,'r-');
   plot(x,y2,'g:');
   plot(x,y3,'b.-');
   plot(x,y4,'m--');
   
   legend('x','x*x','x*x*x','x*x*x*x');
   hold off
end