title: Use value of variable instead of its name lambdas matlab
body: <p>How to use value of variable instead of its name during the description of a lambda expression? This is part of my code:</p>
  
  <pre><code>eq1 = k*x1+b==y1;
  eq2 = k*x2+b==y2;
  sol=solve([eq1,eq2],[k,b]);
  linEq1 = @(x) sol.k*x+sol.b;
  if (defY&lt;linEq1(defX))
      ineq = @(x,y) y&lt;=sol.k*x+sol.b;
  else
      ineq = @(x,y) y&gt;=sol.k*x+sol.b;
  end
  </code></pre>
  
  <p>I need to use value of <code>sol.b</code> and <code>sol.k</code> in lambda expression instead of their names. When I use function which contains this code I can see in workspace: </p>
  
  <pre><code>y&lt;=sol.k*x+sol.b 
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>y&lt;=5x+3 
  </code></pre>
  
  <p>for example. </p>