title: Matlab solve function
body: <p>I'm working with a system of quadratic equations, my experiment has to go different lines from an initial distance Dist (1) and reach a distance 0.</p>
  
  <p>The problem is that this code only reaches a minimum of approximately 0.00025.</p>
  
  <p>It is a limitation of the solve function? or am I doing something wrong?</p>
  
  <p>Of course, thank you very much.</p>
  
  <p>Here is the code:</p>
  
  <p>function SolveEcu()</p>
  
  <pre><code>xg = 0.229;
  yg = 0.348;
  
  ug = 0.136;
  vg = 0.466;
  
  
  i=1;
  Dist(i) = 0.001; %Distancia inicial.
  
  while Dist(i) &gt; 0
      syms ucTemp vcTemp        
      S = solve(vcTemp == (-0.1209*ucTemp) + 0.4827, Dist(i)^2 == ((ucTemp-ug)^2+(vcTemp-vg)^2), 'Real', true); %Resuelvo el sistema de ecuaciones
  
      uTemp = S.ucTemp;% Lo uso para evaluar
      vTemp = S.vcTemp;
      save(['E:\Labz\Experimento Color\Resultados\',datestr(now,'yymmdd')],'uTemp','vTemp','Dist');
  
      i=i+1;   
      Dist(i)=Dist(i-1)- 0.00001;
  
      disp(['Running.. i=',num2str(i)])
  end
  pause(0.5);
  end
  </code></pre>
  
  <hr>
  
  <p>Dist(i) = 2.5000e-04 </p>
  
  <p>Warning: Explicit solution could not be found. </p>
  
  <blockquote>
    <p>In solve at 169
      In SolveEcu at 18 
    Comma separated list expansion has cell syntax for
    an array that
    is not a cell.</p>
  </blockquote>
  
  <p>Error in sym/subsref (line 1575)
              [inds{k},refs{k}] =
              privformat(inds{k});</p>
  
  <p>Error in SolveEcu (line 20)
          uTemp = S.ucTemp;% Lo uso para evaluar</p>