WriteToVTK

Write 3D matrices to VTK files viewable with Paraview.

Ahora está siguiendo esta publicación

This writes a 3D matrix to a VTK file. An old text-based format is used because it is easy to write to. This may result in very large file sizes.

The matrix is normalised, kind of. Not sure why I did that; it might not be needed. The code is very short so feel free to experiment!

Usage:

WriteToVTK(matrix, filename)

Example:

m = reshape(magic(6), [3 3 4]);
WriteToVTK(m, 'magic.vtk');

Citar como

Tim (2026). WriteToVTK (https://es.mathworks.com/matlabcentral/fileexchange/23416-writetovtk), MATLAB Central File Exchange. Recuperado .

Categorías

Más información sobre Vector Fields en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0.0