Root/usrp/plpk

Source at commit 5aa2adfb4301782bc7f7fedfe03c2679b2c9195c created 7 years 3 months ago.
By Werner Almesberger, atusb/Makefile (upload): include atusb-Cmts.User.gbr; change upload dir
1#!/bin/sh
2
3if [ -z "$1" ]; then
4    echo "usage: $0 file [center]" 1>&2
5    exit 1
6fi
7if [ ! -f "$1" ]; then
8    echo "$1: not found" 1>&2
9    exit 1
10fi
11
12c=${2:--25}
13
14gnuplot -persist <<EOF
15set xlabel "MHz"
16set ylabel "dB"
17set yrange [$c-5:$c+5]
18set grid
19plot "<sed '\$d' $1" using (\$1):(log(\$3)/log(10)*10) with lines notitle
20EOF
21

Archive Download this file



interactive