title: Not able to use `fzero()` function in Matlab
body: <p>I am new to Matlab. I am trying to solve a non-linear equation using this inbuilt Matlab function called <code>fzero()</code> but it's not giving me the results.</p>
  
  <p>The main file goes like</p>
  
  <pre><code>A = 5;
  B = 6;
  C = 10;
  
  eq = equation (A, B, C);
  
  fzero(@(x)eq);
  </code></pre>
  
  <p>The other function file is:</p>
  
  <pre><code>function eq = equation (A, B, C)
  
  syms x;
  eq = A*x.^2 + B*x + C*(asinh(x)) ;
  </code></pre>
  
  <p>When I run this code, I get the following error:</p>
  
  <pre><code>Error using fzero (line 118)
  The input should be either a structure with valid fields or at least two arguments to
  FZERO.
  
  Error in main (line 7)
  fzero(@(x)eq); 
  </code></pre>
  
  <p>Could someone help me with this?</p>
  
  <p><strong>EDIT:</strong> 
  WHen I specify the check point as <code>0</code>, it returns me the following error.</p>
  
  <p>Undefined function 'isfinite' for input arguments of type 'sym'.</p>
  
  <pre><code>Error in fzero (line 308)
      elseif ~isfinite(fx) || ~isreal(fx)
  
  Error in main (line 7)
  fzero(@(x)eq, 0); 
  </code></pre>