I have a cross-section and I'm trying to interpolate the cross-shore (i.e. x) location(s) given identified depths of interest. Is there a function in matlab that can do this? I've looked at interp1, but it's the reverse of what I am trying to do (i.e. interpolate y based on x-values).