WriteToVTK

Write 3D matrices to VTK files viewable with Paraview.

現在この提出コンテンツをフォロー中です。

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');

引用

Tim (2026). WriteToVTK (https://jp.mathworks.com/matlabcentral/fileexchange/23416-writetovtk), MATLAB Central File Exchange. に取得済み.

カテゴリ

Help Center および MATLAB AnswersVector Fields についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0