XYZ_DISPLAY
Display 3D Points in the MATLAB Graphics Window


XYZ_DISPLAY is a MATLAB program which reads the name of a data file containing a list of 3D point coordinates, reads the data, and displays the points in the MATLAB graphics window.

The file containing the point coordinates is in the XYZ format.

The MATLAB command scatter3 is used to display the points.

Usage:

xyz_display ( 'filename.xyz' )
where and displays a plot of the points.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

XYZ_DISPLAY is available in a MATLAB version.

Related Data and Programs:

BALL_AND_STICK_DISPLAY, a MATLAB program which demonstrates the creation of a 3D "ball and stick" image;

GRID_DISPLAY, a MATLAB library which can display a 2D or 3D grid or sparse grid.

MESH_DISPLAY, a MATLAB program which reads data defining a polygonal mesh and displays it, with optional numbering.

MPAS_GRID_DISPLAY, MATLAB programs which can read an MPAS NETCDF grid file and display the primary polygonal mesh or the dual triangular mesh.

PLOT_POINTS, a FORTRAN90 program which reads a set of points from a file and plots them into an Encapsulated PostScript file.

PLY_DISPLAY, a MATLAB program which displays an image of a 3D graphics file in PLY format;

QUAD_SURFACE_DISPLAY, a MATLAB program which reads files defining a 3D quadrilateral mesh surface and displays it within MATLAB.

SPHERE_XYZ_DISPLAY, a MATLAB program which reads XYZ information defining points in 3D, and displays a unit sphere and the points in the MATLAB graphics window.

TRI_SURFACE_DISPLAY, a MATLAB program which reads data defining a triangular mesh of a 3D surface and displays it.

XY_DISPLAY, a MATLAB program which reads a set of 2D points from a file and plots them in a the MATLAB graphics window.

XYZ, a data directory which contains examples of XYZ files, a simple 3D graphics point and line format;

XYZ_DISPLAY_OPENGL, a C++ program which reads a set of 3D points from a file and plots them in an OpenGL graphics window.

XYZ_IO, a MATLAB library which reads and writes files in the XYZ, XYZL, and XYZF formats.

XYZF_DISPLAY, a MATLAB program which reads XYZF information defining points and faces in 3D, and displays an image in a MATLAB graphics window.

XYZL_DISPLAY, a MATLAB program which reads XYZL information defining points and lines in 3D, and displays an image in a MATLAB graphics window.

Source Code:

Examples and Tests:

HELIX_201 is a set of 201 points in 3D that trace a helix:

You can go up one level to the MATLAB source codes.


Last revised on 02 January 2009.