Yes, sure, these are the command lines (cen_x is the vector with the x-coordinates, cen_y with the y-coordinates and in dd there are the values I want to interpolate. All of them are vectors with the same length)
??? Error using ==> interp2 at 180 X and Y must be monotonic vectors or matrices produced by MESHGRID.
Error in ==> trial at 12 Zi = interp2(cen_x, cen_y, dd, Xi, Yi);
and I know that cen_x and cen_y are not monotonic, but they can't be monotonic because they are discrete points coming from other lines and, even if I force cen_x to be monotonic, cen_y is not like that.