View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

4.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 3.43 KB File ID: #31030 Version: 1.0




Interpolates scattered data and saves the result to a vtk file.

| Watch this File

File Information

 surface2vtk. Given the scattered data r and its co-ordinates x,y,z,
 surface2vtk interpolates the data to a regular grid and saves the
 resulting surface as a vtk file
 e.g. surface2vtk(x,y,z,r,'surface.vtk')

For info about more complicated interpolation or translating different datasets to VTK please contact.

MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
20 Aug 2011 James Ramm

Theres no requirement for integer inputs

Comment only
11 Aug 2011 Luke

Luke (view profile)

I noticed that the inputs have to be integers and what I have are floats. I could always just multiply my values by a scalar to make them whole numbers. Is there any other way to work around that problem?

Comment only
10 Aug 2011 James Ramm

If you wish to export a surface which has only 1 colour, simply create a vector, r, which has the same length as x,y and z and only 1 value.

Comment only
10 Aug 2011 Luke

Luke (view profile)


This is a great idea of how to save a surface from MATLAB but could you explain the imputs in a little more detail? What is the scattered data "r" that you have? I am assuming that is not the actually points because that is the x, y, and z variables. Could you help me understand that a little more?


Contact us