x=[1,2,3,4,5,6,7,8,9,10];

% 1st graph
y = x.^2;
subplot(1,3,1)
plot(x,y)
xlabel('integer')
ylabel ('square of interger')
title('Power of 2')
grid on
axis([0 10 0 100])

%2nd graph
y = x.^3;
subplot(1,3,2)
plot(x,y)
xlabel('integer')
ylabel ('cube of interger')
title('Power of 3')
grid on
axis([0 10 0 1000]) 

%3rd graph
y = x.^4;
subplot(1,3,3)
plot(x,y)
xlabel('integer')
ylabel ('quad power of interger')
title('Power of 4')
grid on
axis([0 10 0 10000])
