x=linspace(0,10,101)
x=0:0.1:10
y=sin(2*pi*x)
x_l=length(x)
y_l=length(y)
figure(1)
plot(x,y)
pause;
%hold off
figure(2)
stem(x,2*y)

clear all
clc
x=0:0.1:10
y=sin(2*pi*x)
x_l=length(x)
y_l=length(y)
subplot(2,1,1), plot(x,y)
subplot(2,1,2), plot(x,2*y)

t = [0:pi/50:10*pi];
plot3(sin(t),cos(t),t);

x=-2*pi:pi/5:2*pi;
y=-2*pi:pi/5:2*pi;
l_x=length(x)
for i=1:l_x,
  for j=1:l_x,
      z(i,j)=sin(x(i)-y(j));
  end
end
surf(x,y,z)








