title: Does inline function and Fzero can be used to solve nonlinear equations in which other parameters entered are user defined?
body: <p>I want to solve an equation in <code>matlab</code> for value Ql for this I have given command:</p>
  
  <pre><code>f=inline('Ql^2 + Ql/(1+x((Q4*Ql)/(Q4+Ql))+ y)*(x +(x*(1+z)/(Q4*Ql)^2)
  /(1+(x*Q4*Ql*z)/((Q4+Ql)*(1+y)+ x*Q4*Ql)))');
    g = fzero(f,0);
  </code></pre>
  
  <p>where Q4 is computed based on parameters taken from user and x y z are direct inputs from user, my problem is that when I use this I get error:</p>
  
  <p>???Error using ==> fzero at 301
  FZERO cannot continue because user supplied inline <code>object ==&gt; f</code>
  failed with the error below.</p>
  
  <blockquote>
    <p>Not enough inputs to inline function.</p>
  </blockquote>
  
  <p>But I am sure that I am entering every value required.
  Is it that inline functions always work with constants and not user defined functions, if so what should I use to solve this equation for Ql?</p>