MATLAB: Countour plot based on XYZ data

countourdatagriddedimagescMATLABmeshgridplot

Hello everyone,
as from the title, i have XYZ data stored on a 2430×3 double matrix on Matlab. I need to plot them on a countour plot to obtain something like the picture below. The ugly screenshot attached (333.png) is what i obtain when i use counturf in matlab. Can anyone help me please? Really thanks a lot. Riccardo222.PNG

Best Answer

If the 2430 points happens to represent a 45*54 grid then the best is to reshape() select the x, y, z, reshape that into a rectangular grid, and contourf() the result.
If not, if it is scattered points, then scatteredInterpolant() and create a grid of interpolated values, and contourf() the result.
Related Question