title: How to implement this iteration/convergence step by guessing a value in Matlab?
body: <p>I have two parameters <code>fL and fV</code>, both functions of T and P. If I make a function called <code>func(T)</code>, which takes only <code>T</code> as input, then how do I go about implementing this step in Matlab:</p>
  
  <pre><code>Guess P
  
  if |(fL/fV)-1|&lt;0.0001 % where fL and fV are both functions of T and P
  
  then print P
  
  else P=P*(fL/fV)
  </code></pre>
  
  <p>Initially it is advised to guess the <code>P</code> in the beginning of the algorithm. All other steps before this involve formula calculation and doesn't involve any converging, so I didn't write all those formulas. The important thing to note is even though we take only <code>T</code> as input for our function, the pressure is guessed in the beginning of the code and is not part of any input by the user.
  Thanks!</p>