1function [] = 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);
13