0
我正在讀取文件中的數據,並確定最小值和最大值。在gnuplot中創建函數
我想實現的功能中,如果分==最大,然後分= 0
我有thios至今:
reset
# Define two helper functions
ismin(x) = (x<min)?min=x:0
ismax(x) = (x>max)?max=x:0
# Initialise the 'global' vars
max=-1e38
min=1e38
plot "Data.txt" u 0:(ismin($3)*ismax($3))
#set terminal windows
set terminal png medium size 900,600
set output "Data.png"
print min
print max
iseq(min,max) = (min == max)?min = 0 :0
print min
print max
如何設置最小爲0;如果分==最大?
謝謝