I want to make a contour plot of some data I get from a program.
I get three matrices: X , Y and Z
contourf(X,Y,Z)
These matrices are of equal size. The matrices X and Y are not constructed using a meshgrid
and are generally unsorted.
My plot shows some strange features that I don't expect. Therefore, I think Matlab is not able to plot using unsorted mesh points.
How can I plot this data? Or how can I sort the data?