I have the following problem: I want to determine a linear equation for a data table with $x$ and $y$ value. Point 1 should be the point where the first time $y > 0$ and point 2 should be the point where the last time $y < 1$. The linear equation is then to be generated between points 1 and 2. For example in the table between point $x = 2$ and $x = 4$. In addition the x-values are written in an array, the y-values are imported from an excel-file. At the end I want so save the parameters of the linear equation.