title: Intersection between curve from points and a line
body: <p>I'm new in matlab and I'm trying to find the intersection between a curve (from points) and a line. </p>
  
  <p>I've some points and I've plot the interpolation between this points. Now I want to find the intersection between the  interpolation (xi,yi) curve and another line.</p>
  
  <pre><code>x = [94.8;84.4;63.1;49.4;40.6;33.8;23.2;20.1;10.2;9.2;7.9];
  y = [0; 11.4;29.7;41.6;47.5;50.1;52.9;50.6;32.2;28.1;0];
  xi=94.8:-0.1:7.9;
  yi=interp1(x,y,xi,'spline');
  plot(x,y,'*');
  hold on
  plot(xi,yi);
  </code></pre>
  
  <p>I've researched but everything I've found needs a function. I already tried to convert the curve to a function using polyfit but the fit is not good enought.</p>
  
  <p>It is posible to do this in matlab?</p>
  
  <p>Thanks.</p>