title: Plotting graph using for loop in MATLAB
body: <p>I'm trying to plot a simple graph using for loop as shown below</p>
  
  <pre><code>x=linspace(0,2*pi,100);
  for i=1:numel(x)
      y=sin(x(i));
      plot(x(i),y)
      hold on
  end
  </code></pre>
  
  <p>However, nothing appear on my figure. Why is that?</p>