i have gnuplot installed and have some awk scripts
i need delivery ratio on my y axis and mobility speed on my x- axis(20 30 40 ...80) so it means i need a awk script which can take in mobility speed value as input and output the delivery ratio for that speed? if yes, my problem now is the delivery ratio awk script i have does not sort the delivery ratio by mobility speed, how can i change it to make it do what i needed? thanks! awk script of delivery fraction i got: BEGIN { sendLine = 0; recvLine = 0; fowardLine = 0; } $0 ~/^s.* AGT/ { sendLine ++ ; } $0 ~/^r.* AGT/ { recvLine ++ ; } $0 ~/^f.* RTR/ { fowardLine ++ ; } END { printf "cbr s:%d r:%d, r/s Ratio:%.4f, f:%d \n", sendLine, recvLine, (recvLine/sendLine),fowardLine; } -- View this message in context: http://old.nabble.com/plot-graph-tp29326159p29326159.html Sent from the ns-users mailing list archive at Nabble.com.