>> xyz_io_test 07-Jan-2009 19:58:38 XYZ_IO_TEST MATLAB version Test the XYZ_IO routines for input and output of XYZ files. XYZ_IO_TEST01 XYZ_EXAMPLE sets up sample XYZ data. XYZ_WRITE writes an XYZ file. Example dataset size is 101 XYZ_WRITE wrote the header and data for "helix.xyz". Number of points = 101 XYZ_IO_TEST02 XYZ_HEADER_READ reads the header of an XYZ file. XYZ_DATA_READ reads the data of an XYZ file. XYZ_WRITE_TEST created some data. XYZ_HEADER_READ has read the header. Number of points = 101 XYZ_DATA_READ has read the data. Sample data: 1 1.000000 0.000000 0.000000 11 -0.309017 0.951057 0.200000 21 -0.809017 -0.587785 0.400000 31 0.809017 -0.587785 0.600000 41 0.309017 0.951057 0.800000 51 -1.000000 0.000000 1.000000 61 0.309017 -0.951057 1.200000 71 0.809017 0.587785 1.400000 81 -0.809017 0.587785 1.600000 91 -0.309017 -0.951057 1.800000 101 1.000000 -0.000000 2.000000 XYZ_IO_TEST03 XYZL_EXAMPLE sets up XYZ and XYZL data. Example has: Number of points = 8 Number of lines = 6 Number of line items = 18 Wrote the XYZ file "cube.xyz". and the XYZL file "cube.xyzl". XYZ_IO_TEST04 XYZ_HEADER_READ reads the header of an XYZ file. XYZ_DATA_READ reads the data of an XYZ file. XYZL_HEADER_READ reads the header of an XYZL file. XYZL_DATA_READ reads the data of an XYZL file. Examine XYZ file "cube.xyz". Number of points = 8 Point data: 1 0.000000 0.000000 0.000000 2 1.000000 0.000000 0.000000 3 1.000000 1.000000 0.000000 4 0.000000 1.000000 0.000000 5 0.000000 0.000000 1.000000 6 1.000000 0.000000 1.000000 7 1.000000 1.000000 1.000000 8 0.000000 1.000000 1.000000 Examine XYZL file "cube.xyzl". Number of lines = 6 Number of line items = 18 Line pointers: 1 1 5 2 6 10 3 11 12 4 13 14 5 15 16 6 17 18 Line data: 1 1 2 3 4 1 2 5 6 7 8 5 3 1 5 4 2 6 5 3 7 6 4 8 XYZ_IO_TEST05 XYZF_EXAMPLE sets up XYZ and XYZF data. Example has: Number of points = 8 Number of faces = 6 Number of face items = 24 Wrote the XYZ file "cube.xyz". and the XYZF file "cube.xyzf". XYZ_IO_TEST06 XYZ_HEADER_READ reads the header of an XYZ file. XYZ_DATA_READ reads the data of an XYZ file. XYZF_HEADER_READ reads the header of an XYZF file. XYZF_DATA_READ reads the data of an XYZF file. Examine XYZ file "cube.xyz". Number of points = 8 Point data: 1 0.000000 0.000000 0.000000 2 1.000000 0.000000 0.000000 3 1.000000 1.000000 0.000000 4 0.000000 1.000000 0.000000 5 0.000000 0.000000 1.000000 6 1.000000 0.000000 1.000000 7 1.000000 1.000000 1.000000 8 0.000000 1.000000 1.000000 Examine XYZF file "cube.xyzf". Number of faces = 6 Number of face items = 24 Face pointers: 1 1 4 2 5 8 3 9 12 4 13 16 5 17 20 6 21 24 Face data: 1 1 4 3 2 2 2 3 7 6 3 5 6 7 8 4 5 8 4 1 5 1 2 6 5 6 3 4 8 7 XYZ_IO_TEST Normal end of execution. 07-Jan-2009 19:58:38 >>