File Exchange

image thumbnail

Matlab 3D vectors to Paraview (via binary VTK file)

version 1.0.0.0 (1.51 KB) by William Thielicke
Writes a 3D (x,y,z,u,v,w) vector field to a binary VTK file for Paraview.

17 Downloads

Updated 22 Dec 2011

View License

One of the few weak points in MATLAB is its low speed when displaying 3D vector plots. Paraview is an open source visualization tool that seems to work pretty well.
This contribution shows how the MATLAB 3D flow example is written to a binary VTK file.
In Paraview follow these steps:
* CTRL+O to open the generated VTK file
* Hit Apply in Object inspector
* Click Glyph and hit Apply: The 3D vector field is displayed.

Cite As

William Thielicke (2021). Matlab 3D vectors to Paraview (via binary VTK file) (https://www.mathworks.com/matlabcentral/fileexchange/34310-matlab-3d-vectors-to-paraview-via-binary-vtk-file), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

Mohammad Amin Kazemi

The code is written very well. It would be better if you could make it a function with (x,y,z,u,v,w) as the inputs and the *.vtk file as an output.

John Christoph

Ng Tiniao

Dalonia Lenoir

I am trying to turn a matlab file into a file where it is readable in paraview.

cheng joylin

Wolfgang

Ishanu Chattopadhyay

Xianmin

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!