You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
323 B

set term png
set output "kadai4-o_log.png"
fs = 16000.0
N_fft = 512.0
set xlabel "Frequency [kHz]"
set ylabel "Amplitude [dB]"
stats "kadai4_o.txt" using 1 nooutput
set xrange [0:8]
set grid
plot "kadai4_o.txt" using ($0 * fs / N_fft / 1000):(20 * log10(($1 > 1e-10 ? $1 : 1e-10) / STATS_max)) \
with lines notitle