Grid plot

Plots the gridded data as a surface.
668 Downloads
Updated 25 Mar 2014

View License

The gridplot function displays a regularly gridded data as a patch surface. The input grid data is a m-by-3 matrix as (x, y, z) triplets. The z value is assigned as a color value to the corresponding patch. A random value is assigned to z when the grid data is a m-by-2 matrix.
Using this function, there is no need to interpolate the gridded data, that might be already the result of an interpolation method. While other methods make gridline-registered grids that can be plotted using e.g. Mtlab surf function, this function makes a pixel registered grid and uses the Matlab patch function to display the grid.

Cite As

Mohammad Ali (2024). Grid plot (https://www.mathworks.com/matlabcentral/fileexchange/46010-grid-plot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

Sorting the input grid data

1.1.0.0

The function description was updated.

1.0.0.0