All input data have the same domain: [X,Y] = meshgrid(-3:.125:3, -3:.125:3); Use the same domain file in data loading procedure.