dpb <email@example.com> wrote in message <firstname.lastname@example.org>... > On 10/8/2012 11:27 AM, Jonathan wrote: > > Hi, > > > > 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). > > That's just a frame-of-reference...interp1() doesn't care which is the > independent vis a vis dependent variable... > > --
I thought about that. However, when I reversed the order, Matlab gave me an error saying that the y-values needed to be monotonic.