I am attempting to find an interpolation point from a matrix with one column having data in descending order and one column having data in ascending order. When I run the following line
h = interp1(Atmos2(:,1),Atmos2(:,2),1.1);
I get the error: Sample points must be unique and sorted in ascending order.
how do I alleviate this problem? Here is a sample of the data