You are on page 1of 1

x = [1:12];

y = linspace (100,1,12)
subplot(2,2,1)
hold on
bar(x,y,'b')
stem(x,y,'k-d')
plot(x,y,'k-.')
xlabel('')
ylabel('')
title('')
legend('')
grid on

x1= [10,9,8,7,6,5,4,3,2,1];
y1= x1.^2;
subplot(2,2,2)
plot(x1,y1,'m-p')
hold on
stem(x1,y1,'k-.')
xlabel('')
ylabel('')
title('')
legend('')
grid on

x2= linspace (1,2*pi,100);


y2= sin(x2);
subplot(2,2,3)
plot(x2,y2)
xlabel('')
ylabel('')
title('')
legend('')
grid on

x3= 1:20;
y3= rand (1,20);
subplot(2,2,4)
bar(x3,y3,'c')
hold on
plot(x3,y3,'k-h')
xlabel('')
ylabel('')
title('')
legend('')
grid on

You might also like