WriteToVTK
by Tim
24 Mar 2009
Write 3D matrices to VTK files viewable with Paraview.
|
Watch this File
|
| File Information |
| Description |
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'); |
| Acknowledgements |
This submission has inspired the following:
Write Cell Array of Structs into a VTK Structured Grid
|
| MATLAB release |
MATLAB 7.6 (R2008a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 17 Oct 2010 |
Nate
|
|
|
|
Contact us at files@mathworks.com