%-----------------------------------------------------------------------
% Script File: powers
% Problem 1.2.5, p.28
% Superimposes plots of x^k, k = 1:10
% in the range 0 <= x <= 1
close all
m=10
x=linspace(0,1,100)'; y = x; plot(x,y)
axis([0 1 0 1])
  title(' The Power function')
  xlabel(' x ')
  ylabel(' x^k ; k=1,...,10 ')
hold on
for k = 2:m
   y=y.*x; plot(x,y)
end
hold off 
