Save a 3-D scalar array array to the file filename in VTK structured-grid format.
This file format is used by Mayavi2 or ParaView for example. If no write errors occurred, output argument status is set to 1, otherwise 0.
Example:
n = 30; X = zeros (n, n, n); for x = 1:n for y = 1:n for z = 1:n X(x, y, z) = 1 / sqrt (x*x + y*y + z*z); endfor endfor endfor X = X * 200 / max (max (max (X))); savevtk (X, "spherical.vtk");
See also: savevtkvector.
Package: fpl