MATLAB: How to find value of x given y

find xgraph

Hello,
I want to find a value of X.
Here is my code
B=xlsread('cp_lambda.csv');
x1=B(:,1);
y1=B(:,2);
figure(2)
plot(x1,y1)
I want to find a value of x1 when y1 is for example 0.1
Thanks for the answear.

Best Answer

B=xlsread('cp_lambda.csv');
x1=B(:,1);
y1=B(:,2);
figure(2)
plot(x1,y1)
x2 = 0.1;
y2 = spline(x1,y1,x2);
hold on
plot(x2,y2,'or')
hold off