标签: loops gnuplot
我有数据文件mydata:
mydata
1 2 3 4 5 6
我想手动将它们全部加起来并计算平均值。所以像这样:
sum = 0 do for [i in "mydata"] { sum = sum + i } print(sum/6) # expected 6