title: Avoid Matlab Loop for adding value
body: <p>I would like to avoid the for loop in my code, since that is so pretty computationally intensive.</p>
  <p>I search my data frame for a variable, if the variable is 0 the amount 1000 should be added to another variable.
  The same if the variable is 1.</p>
  <pre><code>for i=1:height(dataframe)
  if df.status(i) ==0
      df.Number(i) = df.Number(i)+10000;
  else if df.status(i) ==1
          df.Number(i) = df.Number(i)+20000;
      end
  end
  end
  </code></pre>
  <p>I am very grateful for any advice-
  Tim</p>