I have created a linear piecewise function using interp1 which works beautifully given the x value. Is there a way for which I could solve for an x value given the Y value? Example:
hotStreamInterp = interp1(B,Hhotpt, 'linear', 'pp')'; x = fsolve(480 = ppval(hotStreamInterp, x_unknown));
How could I properly write this? Thank you.
Best Answer