blob: f81ad504822e070d5d2d65b54ae81673cb094683 [file] [log] [blame]
pbos@webrtc.org788acd12014-12-15 09:41:24 +00001function [] = plotDetection(PCMfile, DATfile, fs, chunkSize)
2%[] = plotDetection(PCMfile, DATfile, fs, chunkSize)
3%
4%Plots the signal alongside the detection values.
5%
6%PCMfile: The file of the input signal in PCM format.
7%DATfile: The file containing the detection values in binary float format.
8%fs: The sample rate of the signal in Hertz.
9%chunkSize: The chunk size used to compute the detection values in seconds.
10[x, tx] = readPCM(PCMfile, fs);
11[d, td] = readDetection(DATfile, fs, chunkSize);
12plot(tx, x, td, d);