Root/usrp/plot

Source at commit 424ddce9756cb5ead3e86ec27e767b4e25596ed6 created 9 years 6 months ago.
By Werner Almesberger, ants/: Passive board for antenna testing.
1#!/bin/sh
2if [ -z "$1" ]; then
3    echo "usage: $0 file" 1>&2
4    exit 1
5fi
6if [ ! -f "$1" ]; then
7    echo "$1: not found" 1>&2
8    exit 1
9fi
10gnuplot -persist <<EOF
11set xlabel "MHz"
12set ylabel "dB"
13set yrange [-30:-20]
14plot "<sed '\$d' $1" using (\$1):(log(\$3)/log(10)*10) with lines notitle
15EOF
16

Archive Download this file



interactive