I have three vectors that represent X-Y-Z triplets. How do I produce a contour or surface plot of this data using "meshgrid" and "griddata"?

# MATLAB: How to create a surface or contour plot with x, y, and z vectors

datagridgriddedMATLABnote;techtechnicalvector

###### Related Question

- How to get the colors of contour plot after MATLAB R2014b
- How to get smoother color using 3D data with colors using ‘trisurf’
- How to implement “interp2” in Simulink without using a MATLAB Function block
- How to convert all data from structures & substructures in a cell into a table
- Is the “contourf” command plotting the data backwards
- Do I get an error when setting the LineStyle property for multiple lines in MATLAB 7.4 (R2007a)
- How to change an arrow in a quiver plot
- If I use the property “ColorOrder” while plotting, the color order does not change. How to use the “ColorOrder” property

## Best Answer