I try to extract maximum value of this txt file. The maximum value is " 0.4238688 " here.
Then i just want to get values after this maximum value and add zeros for empty spaces. Like this;
After i get the values following the maximum value, some values are missing and i want to replace this empty spaces with "0.0000000" to keep the number of total value in the txt file.
I try to extract maximum value of this txt file. The maximum value is " 0.4238688 " here.
Then i just want to get values after this maximum value. Like this;
I have 9 string now. In the beginning i had 25 string because my matrix was 5x5.
Now i try to make this txt file until being 25 string and add some zeros like that;
I did not get the chopped-off version matrix. I wrote just to show in a basic way to make it simpler.
First value will be the maximum value in new txt file "0.4238688" and follows the string. Finally i try to 4*5 matrix again including 20 string like that;
It worked. However i have some troubling about sorting (e.g. decimal problem) because i have some values like "3.652067e-08" and because of that sorted numerically wrong.
"After that" is a term that is highly dependent on the point of view, esp. in two or more dimensions. Is my observation correct that values increase by increasing column, then row, until reaching the max, then decrease again?
sort can cope with numbers in scientific notation if run with the -g, --general-numeric-sort option (in lieu of the -n ) as it then will "compare according to general numerical value".