I'm using meshgrid and griddata to interpolate scattered data in 2d. The input data seems to be very smooth, but i cannot retrieve such a smooth result with griddata. Does anyone has a suggestion how to to this properly? The figure depicting the results is attached.
Code:
clearvars; close all; clc;load bulk.matX = bulk(:,1);Y = bulk(:,2);Z = bulk(:,3);% now with meshgrid and griddata
xspace = linspace(0,5000,200);yspace = linspace(0,2e6,160);[xq,yq] = meshgrid(xspace,yspace);zq = griddata(X,Y,Z,xq,yq);
Best Answer