title: Prevent user interaction on command window for octave
body: <p>When I run below octave code the command window displays : </p>
  
  <pre><code>&gt;&gt; first
  x =
  
      10
      20
      30
      40
      50
      60
      70
      80
      90
     100
  
  y =
  
     14
     17
     18
     14
     15
     14
     13
     12
     11
      4
  
  m =  10
  x =
  
       1    10
       1    20
       1    30
       1    40
       1    50
       1    60
       1    70
       1    80
       1    90
       1   100
  
  -- less -- (f)orward, (b)ack, (q)uit
  </code></pre>
  
  <p>I'm required to continually press (f) to complete program and view plot : plot(x(:,2), x*theta, '-');</p>
  
  <p>Octave code : </p>
  
  <pre><code>x = [10
      20
      30
      40
      50
      60
      70
      80
      90
      100]
  y = [14
      17
      18
      14
      15
      14
      13
      12
      11
      4]
  
  m = length(y)
  
  x = [ones(m , 1) , x]
  
  theta = zeros(2, 1);        
  
  iterations = 10;
  alpha = 0.000007;
  
  for iter = 1:iterations
       theta = theta - ((1/m) * ((x * theta) - y)' * x)' * alpha;
       #theta
  end
  
  #plot(x, y, 'o');
  #ylabel('Response Time')
  #xlabel('Time since 0')
  plot(x(:,2), x*theta, '-');
  </code></pre>
  
  <p>How to prevent user interaction with command window so that program runs to completion and displays prompt and not requiring
  user interaction ?</p>