data = importdata('data.txt') ; x = data(:,1) ; y = data(:,2) ; z = data(:,3) ; xi = unique(x) ; yi = unique(y) ; nx = length(xi) ; ny = length(yi) ; X = reshape(x,nx,ny) ; Y = reshape(y,nx,ny) ; Z = reshape(z,nx,ny) ; surf(X,Y,Z) ; view(2) shading interp axis tight saveas(gcf,'myfile.jpg')
I got some help but i still have problem to created image format