write BINARY VTK file for tetrahedral grid with scalar and vector data

This writes a VTK file (in binary format) for an unstructured tetrahedral mesh, including point data

You are now following this Submission

I wrote this because the other VTK writing files on the file exchange either do not do binary format, or they could not do *both* the mesh and the point data in binary format. So I wrote this. You can easily modify it to write 2-D unstructured triangle meshes, for instance.
There is also a test script you can run. Note: you need another program to view the .vtk file, e.g. Paraview.

Cite As

Shawn Walker (2026). write BINARY VTK file for tetrahedral grid with scalar and vector data (https://se.mathworks.com/matlabcentral/fileexchange/58002-write-binary-vtk-file-for-tetrahedral-grid-with-scalar-and-vector-data), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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