IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
| Source at commit 0ff0c31c3ff24d40c5ee4d2391cb63f83e2b6e7f created 7 years 3 months ago. By Werner Almesberger, atusb/Makefile (f, b, upload): convenience targets | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | if [ -z "$1" ]; then |
| 4 | echo "usage: $0 file [center]" 1>&2 |
| 5 | exit 1 |
| 6 | fi |
| 7 | if [ ! -f "$1" ]; then |
| 8 | echo "$1: not found" 1>&2 |
| 9 | exit 1 |
| 10 | fi |
| 11 | |
| 12 | c=${2:--25} |
| 13 | |
| 14 | gnuplot -persist <<EOF |
| 15 | set xlabel "MHz" |
| 16 | set ylabel "dB" |
| 17 | set yrange [$c-5:$c+5] |
| 18 | set grid |
| 19 | plot "<sed '\$d' $1" using (\$1):(log(\$3)/log(10)*10) with lines notitle |
| 20 | EOF |
| 21 | |
