MATLAB: Inverse evaluation – Find x value for a y value

x=[0 0.038 0.0785 0.168 0.272 0.395 0.539]; y=[0 0.005 0.01 0.02 0.03 0.04 0.05]; If these data are fitted to a curve, how can I find a value of x for y? for instance I want to find the value of x for y=0.025

Best Answer

Use interp1. Read about it.
x=[0 0.038 0.0785 0.168 0.272 0.395 0.539];
y=[0 0.005 0.01 0.02 0.03 0.04 0.05];
interp1(y,x,0.025)
Related Question