I have an output file (txt) from a software that appears in the following form (nx2 array).
1 4.5 1 51 6.42 72 3.52 43 23 1.13 9
In order to use this data in another software, i want to rearrange the array in the form (nx4) so that i can get an outputfile that has the data in the following form.
1 4.5 5 6.42 7 3.5 43 2 1.1 9
I would appreciate if someone can guide me to get the data in the desired format.
Best Answer