08-Jan-2022 10:26:27 table_io_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test table_io() R8VEC_WRITE_TEST R8VEC_WRITE writes an R8VEC file. R8VEC data: 1: 0.814724 2: 0.905792 3: 0.126987 4: 0.913376 5: 0.632359 6: 0.0975404 7: 0.278498 8: 0.546882 9: 0.957507 10: 0.964889 Wrote the file "r8vec_10.txt". TEST01 R8MAT_WRITE writes an R8MAT file. Spatial dimension M = 5 Number of points N = 20 5x5 portion of the data written to file: Col: 1 2 3 4 5 Row 1 : 101 102 103 104 105 2 : 201 202 203 204 205 3 : 301 302 303 304 305 4 : 401 402 403 404 405 5 : 501 502 503 504 505 5x5 portion of the TRANSPOSED data: Row: 1 2 3 4 5 Col 1: 101 201 301 401 501 2: 102 202 302 402 502 3: 103 203 303 403 503 4: 104 204 304 404 504 5: 105 205 305 405 505 Wrote the file "r8mat_05_00020.txt". TEST02 R8MAT_HEADER_READ reads the header information from an R8MAT file; R8MAT_DATA_READ reads the data. Read the header of r8mat_05_00020.txt Spatial dimension M = 5 Number of points N = 20 Read the data in r8mat_05_00020.txt 5x5 portion of data read from file: Col: 1 2 3 4 5 Row 1 : 101 102 103 104 105 2 : 201 202 203 204 205 3 : 301 302 303 304 305 4 : 401 402 403 404 405 5 : 501 502 503 504 505 TEST03 I4MAT_WRITE writes an I4MAT file. Spatial dimension M = 5 Number of points N = 20 5x5 portion of the data written to file: Col: 1 2 3 4 5 Row 1: 101 102 103 104 105 2: 201 202 203 204 205 3: 301 302 303 304 305 4: 401 402 403 404 405 5: 501 502 503 504 505 Wrote the file "i4mat_05_00020.txt". TEST04 For an I4MAT file, I4MAT_HEADER_READ reads the header information (about the dimensions of the data); I4MAT_DATA_READ reads the data. Read the header of i4mat_05_00020.txt Spatial dimension D = 20 Number of points N = 5 Read the data in i4mat_05_00020.txt 5x5 portion of data read from file: Col: 1 2 3 4 5 Row 1: 101 102 103 104 105 2: 201 202 203 204 205 3: 301 302 303 304 305 4: 401 402 403 404 405 5: 501 502 503 504 505 TEST06 I4MAT_BORDER_CUT cuts off the border; I4MAT_BORDER_ADD adds a zero border; Spatial dimension M = 6 Number of points N = 4 Initial dataset: Col: 1 2 3 4 Row 1: 11 12 13 14 2: 21 22 23 24 3: 31 32 33 34 4: 41 42 43 44 5: 51 52 53 54 6: 61 62 63 64 "Cut" dataset: Col: 1 2 Row 1: 22 23 2: 32 33 3: 42 43 4: 52 53 "Added" dataset: Col: 1 2 3 4 Row 1: 0 0 0 0 2: 0 22 23 0 3: 0 32 33 0 4: 0 42 43 0 5: 0 52 53 0 6: 0 0 0 0 table_io_test(): Normal end of execution. 08-Jan-2022 10:26:27