file_increment_test, an Octave code which calls file_increment(), which increments every entry of an integer array which is stored in a file.
The information on this web page is distributed under the MIT license.
file_increment, an Octave code which makes a copy of a file containing an integer array, after incrementing each entry by a given value.
RBC is a set of 500 3D nodes and 996 triangles. The triangle data was given using 1-based indexing, but the plotting program to be used expected 0-based indexing. Therefore, the file RBC_ELEMENTS_0.TXT was created by the command:
file_increment ( 'rbc_elements_1.txt', 'rbc_elements_0.txt', -1 )