gnuplot : how to save datafile values into a variable (with condition)?

浪子不回头ぞ 提交于 2019-12-04 17:51:23

This is how I worked around the problem:

A=""
plot file u (A=A.sprintf(' %g',$2), $1):2

All the entries from column 2 will be written to A, which you can access then via:

word(A,i)

where i is the number of the raw (starting at 1) words(A) gives you the total length.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!