comparison tools/rdock/data/pmf/smoothed/pmf2m.awk @ 2:0faa03a92843 draft default tip

Uploaded
author dzesikah
date Fri, 26 Aug 2016 10:19:49 -0400
parents
children
comparison
equal deleted inserted replaced
1:ad4bc82457e5 2:0faa03a92843
1 #!/bin/awk -f
2 {
3 a[NR]=$1;
4 b[NR]=$2;
5 }END{
6 print "# name: x"
7 print "# type: matrix"
8 print "# rows: 1"
9 print "# columns: "NR
10 for(i=1;i<=NR;i++)
11 printf("%f ",a[i]);
12 print ""
13 print "# name: y"
14 print "# type: matrix"
15 print "# rows: 1"
16 print "# columns: "NR
17 for(i=1;i<=NR;i++)
18 printf("%f ",b[i]);
19 print " ";
20 }