mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-30 02:11:53 +02:00
dce0a19794
- usrp/plot: convenience script to plot the signal strength scans - usrp/step-A, usrp/step-I, usrp/step-II: signal strength scans for three boards
16 lines
298 B
Bash
Executable File
16 lines
298 B
Bash
Executable File
#!/bin/sh
|
|
if [ -z "$1" ]; then
|
|
echo "usage: $0 file" 1>&2
|
|
exit 1
|
|
fi
|
|
if [ ! -f "$1" ]; then
|
|
echo "$1: not found" 1>&2
|
|
exit 1
|
|
fi
|
|
gnuplot -persist <<EOF
|
|
set xlabel "MHz"
|
|
set ylabel "dB"
|
|
set yrange [-30:-20]
|
|
plot "<sed '\$d' $1" using (\$1):(log(\$3)/log(10)*10) with lines notitle
|
|
EOF
|