>> xy_io_test 08-Jan-2009 21:15:26 XY_IO_TEST MATLAB version Test the XY_IO routines for input and output of XY files. TEST01 XY_EXAMPLE sets up sample XY data. XY_WRITE writes an XY file. XY_EXAMPLE has created the data. XY_WRITE wrote the header and data for xy_io_test01.xy Number of points = 300 TEST02 XY_READ reads an XY file. XY_WRITE_TEST created some data. XY_READ_HEADER has read the header. Number of points = 100 XY_READ_DATA has read the data. Sample data: 1 0.500000 0.500000 12 0.447795 0.480999 23 0.585116 0.571421 34 0.416667 0.355662 45 0.538588 0.718846 56 0.548236 0.226442 67 0.333333 0.788675 78 0.797906 0.250027 89 0.082359 0.652009 100 1.000000 0.500000 XY_IO_TEST03 XYL_EXAMPLE sets up XY and XYL data. Example has: Number of points = 13 Number of lines = 3 Number of line items = 15 Wrote the XY file "house.xy". and the XYL file "house.xyl" XY_IO_TEST04 XY_HEADER_READ reads the header of an XY file. XY_DATA_READ reads the data of an XY file. XYL_HEADER_READ reads the header of an XYL file. XYL_DATA_READ reads the data of an XYL file. Examine XY file "house.xy". Number of points = 13 Point data: 1 0.000000 0.000000 2 6.000000 0.000000 3 6.000000 7.000000 4 3.000000 10.000000 5 0.000000 7.000000 6 4.000000 1.000000 7 5.000000 1.000000 8 5.000000 4.000000 9 4.000000 4.000000 10 5.000000 8.000000 11 5.000000 11.000000 12 4.000000 11.000000 13 4.000000 9.000000 Examine XYL file "house.xyl". Number of lines = 3 Number of line items = 15 Line pointers: 1 1 6 2 7 11 3 12 15 Line data: 1 1 2 3 4 5 1 2 6 7 8 9 6 3 10 11 12 13 XY_IO_TEST05 XYF_EXAMPLE sets up XY and XYF data. Example has: Number of points = 65 Number of faces = 48 Number of face items = 192 Wrote the XY file "annulus.xy". and the XYF file "annulus.xyf" XY_IO_TEST06 XY_HEADER_READ reads the header of an XY file. XY_DATA_READ reads the data of an XY file. XYF_HEADER_READ reads the header of an XYF file. XYF_DATA_READ reads the data of an XYF file. Examine XY file "annulus.xy". Number of points = 65 Point data: 1 -1.000000 0.000000 2 -0.965926 0.258819 3 -0.866025 0.500000 4 -0.707107 0.707107 5 -0.500000 0.866025 6 -0.258819 0.965926 7 0.000000 1.000000 8 0.258819 0.965926 9 0.500000 0.866025 10 0.707107 0.707107 11 0.866025 0.500000 12 0.965926 0.258819 13 1.000000 0.000000 14 -1.500000 0.000000 15 -1.448889 0.388229 16 -1.299038 0.750000 17 -1.060660 1.060660 18 -0.750000 1.299038 19 -0.388229 1.448889 20 0.000000 1.500000 21 0.388229 1.448889 22 0.750000 1.299038 23 1.060660 1.060660 24 1.299038 0.750000 25 1.448889 0.388229 26 1.500000 0.000000 27 -2.000000 0.000000 28 -1.931852 0.517638 29 -1.732051 1.000000 30 -1.414214 1.414214 31 -1.000000 1.732051 32 -0.517638 1.931852 33 0.000000 2.000000 34 0.517638 1.931852 35 1.000000 1.732051 36 1.414214 1.414214 37 1.732051 1.000000 38 1.931852 0.517638 39 2.000000 0.000000 40 -2.500000 0.000000 41 -2.414815 0.647048 42 -2.165064 1.250000 43 -1.767767 1.767767 44 -1.250000 2.165064 45 -0.647048 2.414815 46 0.000000 2.500000 47 0.647048 2.414815 48 1.250000 2.165064 49 1.767767 1.767767 50 2.165064 1.250000 51 2.414815 0.647048 52 2.500000 0.000000 53 -3.000000 0.000000 54 -2.897777 0.776457 55 -2.598076 1.500000 56 -2.121320 2.121320 57 -1.500000 2.598076 58 -0.776457 2.897777 59 0.000000 3.000000 60 0.776457 2.897777 61 1.500000 2.598076 62 2.121320 2.121320 63 2.598076 1.500000 64 2.897777 0.776457 65 3.000000 0.000000 Examine XYF file "annulus.xyf". Number of faces = 48 Number of face items = 192 Face pointers: 1 1 4 2 5 8 3 9 12 4 13 16 5 17 20 6 21 24 7 25 28 8 29 32 9 33 36 10 37 40 11 41 44 12 45 48 13 49 52 14 53 56 15 57 60 16 61 64 17 65 68 18 69 72 19 73 76 20 77 80 21 81 84 22 85 88 23 89 92 24 93 96 25 97 100 26 101 104 27 105 108 28 109 112 29 113 116 30 117 120 31 121 124 32 125 128 33 129 132 34 133 136 35 137 140 36 141 144 37 145 148 38 149 152 39 153 156 40 157 160 41 161 164 42 165 168 43 169 172 44 173 176 45 177 180 46 181 184 47 185 188 48 189 192 Face data: 1 1 2 15 14 2 2 3 16 15 3 3 4 17 16 4 4 5 18 17 5 5 6 19 18 6 6 7 20 19 7 7 8 21 20 8 8 9 22 21 9 9 10 23 22 10 10 11 24 23 11 11 12 25 24 12 12 13 26 25 13 14 15 28 27 14 15 16 29 28 15 16 17 30 29 16 17 18 31 30 17 18 19 32 31 18 19 20 33 32 19 20 21 34 33 20 21 22 35 34 21 22 23 36 35 22 23 24 37 36 23 24 25 38 37 24 25 26 39 38 25 27 28 41 40 26 28 29 42 41 27 29 30 43 42 28 30 31 44 43 29 31 32 45 44 30 32 33 46 45 31 33 34 47 46 32 34 35 48 47 33 35 36 49 48 34 36 37 50 49 35 37 38 51 50 36 38 39 52 51 37 40 41 54 53 38 41 42 55 54 39 42 43 56 55 40 43 44 57 56 41 44 45 58 57 42 45 46 59 58 43 46 47 60 59 44 47 48 61 60 45 48 49 62 61 46 49 50 63 62 47 50 51 64 63 48 51 52 65 64 XY_IO_TEST Normal end of execution. 08-Jan-2009 21:15:26 >>