Plot a 3D array using patch

Plotting a 3D array using a patch surface mesh

Download
Download

You are now following this Submission

Cite As

Adam Aitkenhead (2026). Plot a 3D array using patch (https://au.mathworks.com/matlabcentral/fileexchange/28497-plot-a-3d-array-using-patch), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Spectral Imaging Toolbox

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.11.0

The user can now define the lower and upper limits of the colorbar using the input parameter 'clim'. Also, the input flag 'sym' has been removed as this can be done using clim instead.

Download
1.9.0

Provide the handle to the colorbar as an optional output.

Download
1.8.0

Some minor code optimisations

Download
1.7.0

Bugfix: Prevent a hole from appearing at the lowest values in a full colour plot.

Download
1.5.0

The user can now specify the colour map for the display of a 3D numeric array.

Download
1.4.0

Minor bugfix

Download
1.3.0

Now enables a 3D numeric array to be plotted such that each facet corresponds to the value of each voxel in the array.

Download
1.2.0

Added missing example.mat file

Download
1.1.0

Improved documentation

Download
1.0.0

Download