Write 2D and 3D Arrays into VTK

A function to export either 2D/3D Matlab arrays as a binary *.vtk file for Paraview.

You are now following this Submission

This function takes 2D and 3D matrices arrays and writes a structured grid of point in VTK 2.0 format. The files can be produced in ASCII and BINARY formats. Binary floats are recommended for large matrices.

Cite As

Manuel A. Diaz (2026). Write 2D and 3D Arrays into VTK (https://au.mathworks.com/matlabcentral/fileexchange/58819-write-2d-and-3d-arrays-into-vtk), 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

Description updated.